[New-bugs-announce] [issue39431] Mention nonlocal too in assignment quirk

Shanavas M report at bugs.python.org
Thu Jan 23 06:40:24 EST 2020


New submission from Shanavas M <shanavas.m2 at gmail.com>:

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

----------
assignee: docs at python
components: Documentation
messages: 360553
nosy: docs at python, shanavasm
priority: normal
pull_requests: 17528
severity: normal
status: open
title: Mention nonlocal too in assignment quirk
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39431>
_______________________________________


More information about the New-bugs-announce mailing list