Repository navigation
Closed
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2020-01-23.18:58:56.453>
created_at = <Date 2020-01-23.11:40:24.221>
labels = ['3.8', 'type-bug', '3.7', '3.9', 'docs']
title = 'Mention nonlocal too in assignment quirk'
updated_at = <Date 2020-01-23.18:58:56.453>
user = 'https://github.com/shanavas786'bugs.python.org fields:
activity = <Date 2020-01-23.18:58:56.453>
actor = 'terry.reedy'
assignee = 'docs@python'
closed = True
closed_date = <Date 2020-01-23.18:58:56.453>
closer = 'terry.reedy'
components = ['Documentation']
creation = <Date 2020-01-23.11:40:24.221>
creator = 'shanavasm'
dependencies = []
files = []
hgrepos = []
issue_num = 39431
keywords = ['patch']
message_count = 4.0
messages = ['360553', '360572', '360574', '360575']
nosy_count = 4.0
nosy_names = ['terry.reedy', 'docs@python', 'miss-islington', 'shanavasm']
pr_nums = ['17375', '18152', '18153']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue39431'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']Linked PRs
Metadata
Metadata
Assignees
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
shanavas786 commentedon Jan 23, 2020
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
terryjreedy commentedon Jan 23, 2020
New changeset 7142df5 by Terry Jan Reedy (Shanavas M) in branch 'master':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
7142df5
miss-islington commentedon Jan 23, 2020
New changeset 0c12d70 by Miss Islington (bot) in branch '3.7':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
0c12d70
miss-islington commentedon Jan 23, 2020
New changeset 5a2356b by Miss Islington (bot) in branch '3.8':
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
5a2356b
pythonGH-83612: Rebased to main.
pythonGH-83612: Added news entry.