Skip to content

Remove _PyCompile_IsNestedScope roll it into _PyCompile_IsInteractive #124058

Closed
@iritkatriel

Description

@iritkatriel

Currently the c_interactive field is used in only one place - to special-case the code generation of interactive statements. We can move this special case from codegen_stmt_expr to _PyCodegen_Body (where there is the is_interactive arg) and then we no longer need c_interactive, its accessor function _PyCompile_IsInteractive, and the _PyCompile_IsNestedScope function.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions