Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

>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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue19335>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to