Skip to content

Execution model reference should cover closure arg to exec & eval #122826

Description

@ncoghlan

When the closure parameter was added to exec and eval for Python 3.11, it rendered the "Interaction with dynamic features" part of the execution model reference slightly out of date: https://docs.python.org/3/reference/executionmodel.html#interaction-with-dynamic-features

The text remains accurate for string execution, but needs updating to correctly cover execution of code objects with closure variable references.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesdocsDocumentation in the Doc dirtriagedThe issue has been accepted as valid by a triager.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions