Skip to content

Incorrect error handling when compiler_set_qualname fails #156459

Description

@iritkatriel

compiler_set_qualname is called at the end of _PyCompile_EnterScope, after the compiler entered the scope. If it fails, _PyCompile_EnterScope returns error (without reverting the scope entry) and the caller would assume that there was no change in scope.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions