Visitar URL original
gh-48496: Added example and link to faq for UnboundLocalError in reference by slateny · Pull Request #93068 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220522182423/https://github.com/python/cpython/pull/93068
Skip to content
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

gh-48496: Added example and link to faq for UnboundLocalError in reference #93068

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slateny
Copy link
Contributor

@slateny slateny commented May 22, 2022

#48496

https://docs.python.org/3/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value

https://docs.python.org/3/reference/executionmodel.html#resolution-of-names

A comment on the issue mentioned putting an example in the tutorial, but skipped it since it's already got an FAQ entry, and that the scopes tutorial makes no mention of NameError/UnboundLocalError.

@bedevere-bot bedevere-bot added docs awaiting review labels May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants