Skip to content

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

Merged
terryjreedy merged 1 commit intopython:masterfrom
terryjreedy:nonlocal
Feb 7, 2021
Merged

bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return'#24469
terryjreedy merged 1 commit intopython:masterfrom
terryjreedy:nonlocal

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

@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