bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' by terryjreedy · Pull Request #24469 · python/cpython · GitHub
Skip to content

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

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

terryjreedy merged 1 commit into
python:masterfrom
terryjreedy:nonlocal

Conversation

@terryjreedy

@terryjreedy terryjreedy commented Feb 7, 2021

Copy link
Copy Markdown
Member

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

https://bugs.python.org/issue16781

@miss-islington

Copy link
Copy Markdown
Contributor

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