This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mention nonlocal too in assignment quirk
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, miss-islington, shanavasm, terry.reedy
Priority: normal Keywords: patch

Created on 2020-01-23 11:40 by shanavasm, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 17375 merged shanavasm, 2020-01-23 11:40
PR 18152 merged miss-islington, 2020-01-23 18:09
PR 18153 merged miss-islington, 2020-01-23 18:16
Messages (4)
msg360553 - (view) Author: Shanavas M (shanavasm) * Date: 2020-01-23 11:40
Doc says "A special quirk of Python is that -- if no :keyword:`global` statement is in	A special quirk of Python is that -- if no :keyword:`global` or :keyword:`nonlocal`
effect -- assignments to names always go into the innermost scope."

nonlocal should also be mentioned along with global
msg360572 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-01-23 18:09
New changeset 7142df5ea23b4ce0efb72746b4b3b65414e8dcb1 by Terry Jan Reedy (Shanavas M) in branch 'master':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
https://github.com/python/cpython/commit/7142df5ea23b4ce0efb72746b4b3b65414e8dcb1
msg360574 - (view) Author: miss-islington (miss-islington) Date: 2020-01-23 18:15
New changeset 0c12d70bfdedf85c62e1c2b8c55ef4e84e6ee461 by Miss Islington (bot) in branch '3.7':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
https://github.com/python/cpython/commit/0c12d70bfdedf85c62e1c2b8c55ef4e84e6ee461
msg360575 - (view) Author: miss-islington (miss-islington) Date: 2020-01-23 18:22
New changeset 5a2356be1a3f4a9b2e509a16062016b7d9dee7e9 by Miss Islington (bot) in branch '3.8':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
https://github.com/python/cpython/commit/5a2356be1a3f4a9b2e509a16062016b7d9dee7e9
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83612
2020-01-23 18:58:56terry.reedysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-01-23 18:22:39miss-islingtonsetmessages: + msg360575
2020-01-23 18:16:53miss-islingtonsetpull_requests: + pull_request17539
2020-01-23 18:15:19miss-islingtonsetnosy: + miss-islington
messages: + msg360574
2020-01-23 18:09:41terry.reedysetnosy: + terry.reedy
messages: + msg360572
2020-01-23 18:09:36miss-islingtonsetkeywords: + patch
pull_requests: + pull_request17538
2020-01-23 18:04:23terry.reedysetstage: patch review
type: behavior
versions: + Python 3.7
2020-01-23 11:40:24shanavasmcreate