basicblock_addop Assertion · Issue #109627 · python/cpython (original) (raw)

Bug report

Bug description:

I found the following error with the latest cpython 3.12 from git (4a0c118), which I build myself with --with-pydebug enabled.

source:

def get_namespace_uri(): while element and something: try: return something except: pass

output (Python 3.12.0rc3+):

python3: Python/flowgraph.c:114: basicblock_addop: Assertion `0 <= oparg && oparg < (1 << 30)' failed.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs