You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code triggers a crash instead of something like a cold exit.
importpyjion; pyjion.enable()
defcompare(a, b):
returna+b-bforiinrange(100000):
r=compare(1.1, 1.1)
r=compare(1, 1.1)
print(r)
"""Traceback (most recent call last): File "/root/work/src/temp.py", line 9, in <module> r = compare(1, 1.1) File "/root/work/src/temp.py", line 4, in compare return a + b - bpyjion.PyjionUnboxingError: Optimizations are invalid. Pyjion PGC expected float, but 1 is a int. Try disabling PGC pyjion.config(pgc=False) or lowering the optimization level to avoid hitting this error."""
version:
pyjion 2.0.0 (compile with latest source code)
ubuntu 20.04
python 3.10.12
This code behavior is different when enabling jit,
x.fn = lambda x, y: x + y
seems be ignored:The text was updated successfully, but these errors were encountered: