Closed
Description
Bug report
Bug description:
a if (1 if b else c) else d
output (Python 3.12.0rc3+):
python: Python/flowgraph.c:1598: optimize_cfg: Assertion `no_redundant_nops(g)' failed.
tested with the current 3.12 branch (538f505)
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
- [3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP #109899
- gh-109889: fix compiler's redundant NOP detection to look past NOPs with no lineno when looking for the next instruction's lineno #109987
- [3.12] gh-109889: fix compiler's redundant NOP detection to look past NOPs with no lineno when looking for the next instruction's lineno (GH-109987) #110048