[issue32361] global / nonlocal interference : is this a bug, a feature or a design hole ?

Camion report at bugs.python.org
Mon Dec 18 11:11:18 EST 2017


Camion <camion_spam-pybugs at yahoo.com> added the comment:

I forgot to mention, that I wonder if the interpreter shouldn't instead,
- either consider that since global a is used is g, it should be considered as also local to g from h point of view,
- or if h should be able to access f's version of a.
- (or if on the contrary, this ambiguity is the very reason to cause a syntax error, -- but in this case, one might need to change the text of the error message to make it more accurate. --)

----------

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


More information about the Python-bugs-list mailing list