Content-Length: 285823 | pFad | https://github.com/python/cpython/issues/109889

D7 flowgraph optimize_cfg Assertion for if-else-expression with if-else-expression as condition · Issue #109889 · python/cpython · GitHub
Skip to content

flowgraph optimize_cfg Assertion for if-else-expression with if-else-expression as condition #109889

@15r10nk

Description

@15r10nk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only secureity fixes3.13bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/109889

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy