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.

Author pablogsal
Recipients Esa.Peuha, Mark.Shannon, RJ722, Rosuav, cheryl.sabella, lys.nikolaou, mbussonn, ncoghlan, pablogsal, r.david.murray, terry.reedy
Date 2020-06-30.17:29:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593538160.07.0.613548028428.issue19335@roundup.psfhosted.org>
In-reply-to
Content
>1) We should alter code in symtable.c to check whether the namespace in which the nonlocal statement appears in is a function block and whether it is nested or not.

Also, the 'nesting' has very specific meanings in the symbol table: scoping. The validity of the keyword translates there if is able to find a variable in the enclosing intermediate scope (when its not the global one).
History
Date User Action Args
2020-06-30 17:29:20pablogsalsetrecipients: + pablogsal, terry.reedy, ncoghlan, r.david.murray, Mark.Shannon, Rosuav, Esa.Peuha, mbussonn, cheryl.sabella, lys.nikolaou, RJ722
2020-06-30 17:29:20pablogsalsetmessageid: <1593538160.07.0.613548028428.issue19335@roundup.psfhosted.org>
2020-06-30 17:29:20pablogsallinkissue19335 messages
2020-06-30 17:29:19pablogsalcreate