question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 3.10 kwarg peephole rewrite failing in valid case (breaks mainline)

See original GitHub issue

Reporting 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
njriasancommented, May 12, 2022

@stuartarchibald I found the source of the issue. Opening a PR.

0reactions
stuartarchibaldcommented, May 13, 2022

Thanks for promptly taking a look/opening a patch @njriasan, much appreciated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found