Skip to content

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Mar 18, 2024

Define 'nonlocal scopes' first, and in a way that excludes class scopes.
Rearrange some of the doc. Add "Programmer's note".


📚 Documentation preview 📚: https://cpython-previews--116942.org.readthedocs.build/

Redefine 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".
@terryjreedy terryjreedy added docs Documentation in the Doc dir skip news needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Mar 18, 2024
@terryjreedy
Copy link
Member Author

The nonlocal page in doc preview looks ok.

terryjreedy and others added 2 commits March 19, 2024 13:44
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@terryjreedy terryjreedy merged commit 025ef7a into python:main Mar 19, 2024
@miss-islington-app
Copy link

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 19, 2024
Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".
(cherry picked from commit 025ef7a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app
Copy link

bedevere-app bot commented Mar 19, 2024

GH-117023 is a backport of this pull request to the 3.12 branch.

@miss-islington-app
Copy link

Sorry, @terryjreedy, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 025ef7a5f7b424fba8713e448244b952bf897df3 3.11

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Mar 19, 2024
@terryjreedy terryjreedy deleted the nonlocal branch March 19, 2024 17:56
@terryjreedy
Copy link
Member Author

Not worth manual backport.

terryjreedy added a commit that referenced this pull request Mar 19, 2024
Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".

(cherry picked from commit 025ef7a)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
vstinner pushed a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".
@ZeroIntensity ZeroIntensity removed the needs backport to 3.11 only security fixes label Feb 17, 2025
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.

4 participants