Skip to content

Cannot call other methods within the jit method. #6135

@topcoco

Description

@topcoco

Calling external methods within the jit method will lead to compilation failure.

def foo():
a = 5
print("aaaaaaaaa")
return 10 + a

foo.jit()

Traceback (most recent call last):
File "C:\Users\35600\RustroverProjects\RustPython\examples\call_between_rust_and_python.py", line 18, in python_callback
foo.jit()
JitError: function can't be jitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions