René's URL Explorer Experiment


Title: [3.8] bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) by miss-islington · Pull Request #24471 · python/cpython · GitHub

Open Graph Title: [3.8] bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) by miss-islington · Pull Request #24471 · python/cpython

X Title: [3.8] bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) by miss-islington · Pull Request #24471 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: These 3 statements cannot be used at module scope -- nor in exec with one namespace. (cherry picked from commit 0ec57e2) Co-authored-by: Terry Jan Reedy tjreedy@udel.edu https://bugs.python.org/is...

X Description: These 3 statements cannot be used at module scope -- nor in exec with one namespace. (cherry picked from commit 0ec57e2) Co-authored-by: Terry Jan Reedy tjreedy@udel.edu https://bugs.python.org/is...

Mail addresses
tjreedy@udel.edu

Opengraph URL: https://github.com/python/cpython/pull/24471

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e3b84d39-c4cd-8ec1-074e-9434a84a285f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id83EC:623C0:198A39D:24BCD73:6A58C68F
html-safe-nonceb745d753a346d8381171c04fc27c63845a72a5f5cd22665653392a249d7b0ba8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0VDOjYyM0MwOjE5OEEzOUQ6MjRCQ0Q3Mzo2QTU4QzY4RiIsInZpc2l0b3JfaWQiOiI2MzcyMjEwNDc1MDk5ODAxMjMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8753c6181fdf03faedc23e7817ab7e910524dbb37bbe9456d82a4c8246fff895
hovercard-subject-tagpull_request:568911046
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/24471/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b172da7f60c0787947da4cc340e8dfdd05618196343f7f307e1a22814624cd5c/python/cpython/pull/24471
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b172da7f60c0787947da4cc340e8dfdd05618196343f7f307e1a22814624cd5c/python/cpython/pull/24471
og:image:altThese 3 statements cannot be used at module scope -- nor in exec with one namespace. (cherry picked from commit 0ec57e2) Co-authored-by: Terry Jan Reedy tjreedy@udel.edu https://bugs.python.org/is...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemiss-islington
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/24471#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F24471
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F24471
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/24471
Reloadhttps://github.com/python/cpython/pull/24471
Reloadhttps://github.com/python/cpython/pull/24471
Please reload this pagehttps://github.com/python/cpython/pull/24471
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/24471
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
miss-islingtonhttps://github.com/miss-islington
python:3.8https://github.com/python/cpython/tree/3.8
miss-islington:backport-0ec57e2-3.8https://github.com/miss-islington/cpython/tree/backport-0ec57e2-3.8
Conversationhttps://github.com/python/cpython/pull/24471
Commits1 (1)https://github.com/python/cpython/pull/24471/commits
Checkshttps://github.com/python/cpython/pull/24471/checks
Files changedhttps://github.com/python/cpython/pull/24471/files
[3.8] bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)https://github.com/python/cpython/pull/24471#top
miss-islingtonhttps://github.com/miss-islington
python:3.8https://github.com/python/cpython/tree/3.8
miss-islington:backport-0ec57e2-3.8https://github.com/miss-islington/cpython/tree/backport-0ec57e2-3.8
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 7, 2021https://github.com/python/cpython/pull/24471#issue-802868256
Please reload this pagehttps://github.com/python/cpython/pull/24471
0ec57e2https://github.com/python/cpython/commit/0ec57e25c918b859b9f8d464e34e0ac859c2f8b3
https://bugs.python.org/issue16781https://bugs.python.org/issue16781
Please reload this pagehttps://github.com/python/cpython/pull/24471
https://github.com/terryjreedy
https://github.com/miss-islington
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (https://github.com/python/cpython/pull/24471/commits/27ce1b18b4d027923a66c8b612f55c4801f6db7e
pyt…https://github.com/python/cpython/pull/2446
27ce1b1https://github.com/python/cpython/pull/24471/commits/27ce1b18b4d027923a66c8b612f55c4801f6db7e
…honGH-2446https://github.com/python/cpython/pull/2446
0ec57e2https://github.com/miss-islington/cpython/commit/0ec57e25c918b859b9f8d464e34e0ac859c2f8b3
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299846983
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 7, 2021https://github.com/python/cpython/pull/24471#issuecomment-774604885
@dzenanzhttps://github.com/dzenanz
Please reload this pagehttps://github.com/python/cpython/pull/24471
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 7, 2021https://github.com/python/cpython/pull/24471#issuecomment-774604921
@dzenanzhttps://github.com/dzenanz
Please reload this pagehttps://github.com/python/cpython/pull/24471
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299847014
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299850771
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
Feb 7, 2021 https://github.com/python/cpython/pull/24471#pullrequestreview-584962292
View reviewed changes https://github.com/python/cpython/pull/24471/files/27ce1b18b4d027923a66c8b612f55c4801f6db7e
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299850983
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 7, 2021https://github.com/python/cpython/pull/24471#issuecomment-774606581
@dzenanzhttps://github.com/dzenanz
Please reload this pagehttps://github.com/python/cpython/pull/24471
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
920bf6ahttps://github.com/python/cpython/commit/920bf6a3a656e329c2bcbb761eb8c13c46c8cd05
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299854193
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Feb 7, 2021https://github.com/python/cpython/pull/24471#event-4299854216
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
February 7, 2021 05:38https://github.com/python/cpython/pull/24471#event-4299854219
https://github.com/dzenanz
dzenanzhttps://github.com/dzenanz
Feb 8, 2021 https://github.com/python/cpython/pull/24471#ref-pullrequest-802868237
[3.9] bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) #24470 https://github.com/python/cpython/pull/24470
https://github.com/python/cpython/pull/24471
techtonikhttps://github.com/python/cpython/pull/24471
May 18, 2023 https://github.com/python/cpython/pull/24471#ref-issue-1198892409
execfile/exec execution in other than global scope uses locals(), leading to undefined behavior #60985 https://github.com/python/cpython/issues/60985
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F24471
https://github.com/terryjreedy
terryjreedy https://github.com/terryjreedy
https://github.com/python/cpython/pull/24471/files/27ce1b18b4d027923a66c8b612f55c4801f6db7e
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/24471
https://github.com/miss-islington
https://github.com/terryjreedy
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.