New submission from Shanavas M <shanavas...@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@python
components: Documentation
messages: 360553
nosy: docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39431>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to