Skip to content

bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' #24469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Feb 7, 2021

These 3 statements cannot be used at module scope -- nor in exec with one namespace.

https://bugs.python.org/issue16781

@terryjreedy terryjreedy added docs Documentation in the Doc dir skip news needs backport to 3.8 needs backport to 3.9 only security fixes labels Feb 7, 2021
@terryjreedy terryjreedy self-assigned this Feb 7, 2021
@terryjreedy terryjreedy merged commit 0ec57e2 into python:master Feb 7, 2021
@miss-islington
Copy link
Contributor

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants