Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
@jit
NumbaWarning: [1m
Compilation is falling back to object mode WITH looplifting enabled because Function "foo" failed type inference due to: [1m[1mUnknown attribute 'time' of type Module(<module 'time' (built-in)>)
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
[0m[1mDuring: typing of get attribute at C:\Users\Administrator\Desktop\a.py (5)[0m
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
@jit
NumbaWarning: [1m
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "foo" failed type inference due to: [1m[1mcannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>[0m
[1m
File "a.py", line 7:[0m
[1mdef foo(x,y):
<source elided>
s = 0
[1m for i in range(x,y):
[0m [1m^[0m[0m
[0m[0m
Warning (from warnings module):
File "D:\python38\lib\site-packages\numba\core\object_mode_passes.py", line 177
warnings.warn(errors.NumbaWarning(warn_msg,
NumbaWarning: [1mFunction "foo" was compiled in object mode without forceobj=True, but has lifted loops.
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
Warning (from warnings module):
File "D:\python38\lib\site-packages\numba\core\object_mode_passes.py", line 187
warnings.warn(errors.NumbaDeprecationWarning(msg,
NumbaDeprecationWarning: [1m
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m