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