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
{{ message }}
Repository navigation
Python 3.10 kwarg peephole rewrite failing in valid case (breaks mainline) #8043
numba/core/interpreter.py", line 708, in peep_hole_call_function_ex_to_call_function_kw
raise UnsupportedError(errmsg)
numba.core.errors.UnsupportedError: Failed in nopython mode pipeline (step: analyzing bytecode)
CALL_FUNCTION_EX with **kwargs not supported.
If you are not using **kwargs this may indicate that
you have a large number of kwargs and are using inlined control
flow. You can resolve this issue by moving the control flow out of
the function call. For example, if you have
f(a=1 if flag else 0, ...)
Replace that with:
a_val = 1 if flag else 0
f(a=a_val, ...)
Activity
stuartarchibald commentedon May 12, 2022
CC @njriasan
stuartarchibald commentedon May 12, 2022
Running the above on Python 3.10 results in:
njriasan commentedon May 12, 2022
@stuartarchibald. I'll take a look. Thanks for the ping.
njriasan commentedon May 12, 2022
@stuartarchibald I found the source of the issue. Opening a PR.
stuartarchibald commentedon May 13, 2022
Thanks for promptly taking a look/opening a patch @njriasan, much appreciated.