Title: gh-48496: Added example and link to faq for UnboundLocalError in reference by slateny · Pull Request #93068 · python/cpython · GitHub
Open Graph Title: gh-48496: Added example and link to faq for UnboundLocalError in reference by slateny · Pull Request #93068 · python/cpython
X Title: gh-48496: Added example and link to faq for UnboundLocalError in reference by slateny · Pull Request #93068 · python/cpython
Description: #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.
Open Graph Description: #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...
X Description: #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...
Opengraph URL: https://github.com/python/cpython/pull/93068
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:2ae3a22d-a8da-bb96-48f3-91ec981be9f8 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E7DC:36C7A:6FD29:984A7:696962D5 |
| html-safe-nonce | 78e98c14b07083c9045f98d3e25f44c76aa3faf8c32a46852246955131d87410 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0RDOjM2QzdBOjZGRDI5Ojk4NEE3OjY5Njk2MkQ1IiwidmlzaXRvcl9pZCI6IjczNjkwMjI2OTE3MTQwOTc4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 150bd85026ce3c90f8f81048d18adda88e929f86846ff5c48477198f46be9b98 |
| hovercard-subject-tag | pull_request:943619390 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/93068/checks |
| twitter:image | https://avatars.githubusercontent.com/u/46876382?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/46876382?s=400&v=4 |
| og:image:alt | #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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width