[issue39431] Mention nonlocal too in assignment quirk
New submission from Shanavas M <shanavas.m2@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 <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
Change by Terry J. Reedy <tjreedy@udel.edu>: ---------- stage: -> patch review type: -> behavior versions: +Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- keywords: +patch pull_requests: +17538 pull_request: https://github.com/python/cpython/pull/18152 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
Terry J. Reedy <tjreedy@udel.edu> added the comment: 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/7142df5ea23b4ce0efb72746b4b3b65414e... ---------- nosy: +terry.reedy _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: 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/0c12d70bfdedf85c62e1c2b8c55ef4e84e6... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +17539 pull_request: https://github.com/python/cpython/pull/18153 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: 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/5a2356be1a3f4a9b2e509a16062016b7d9d... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
Change by Terry J. Reedy <tjreedy@udel.edu>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39431> _______________________________________
participants (3)
-
miss-islington
-
Shanavas M
-
Terry J. Reedy