Skip to content

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

Closed
@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 security fixes3.13bugs and security 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