Python 3.10 kwarg peephole rewrite failing in valid case (breaks mainline)
See original GitHub issueReporting a bug
- I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
- I have included a self contained code sample to reproduce the problem. i.e. it’s possible to run as ‘python bug.py’.
This breaks on mainline and is a blocking issue for 0.56.
from numba import njit, objmode
def func(*args):
pass
@njit
def log(*args):
with objmode():
func(*args)
log()
the above reproducer is extracted from the failing tests found by running on Python 3.10:
./runtests.py numba.tests.test_ndarray_subclasses
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
numba/CHANGE_LOG at main - GitHub
NumPy aware dynamic Python compiler using LLVM. Contribute to numba/numba development by creating an account on GitHub.
Read more >Minutes_2022_05_17 - numba/numba GitHub Wiki - GitHub Wiki SEE
#8043 - Python 3.10 kwarg peephole rewrite failing in valid case (breaks mainline); #8045 - Windows caching tests failing with FileNotFoundError ...
Read more >DirectFB on GA media (Moderate) - Support
Moderate CVE-2014-3618 python on GA media (Moderate) SUSE Linux Enterprise Server 12 SP1 These are all security issues found in the python ......
Read more >numba - bytemeta
Windows caching tests failing with FileNotFoundError. stuartarchibald ... Python 3.10 kwarg peephole rewrite failing in valid case (breaks mainline).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@stuartarchibald I found the source of the issue. Opening a PR.
Thanks for promptly taking a look/opening a patch @njriasan, much appreciated.