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

Stefan Krah report at bugs.python.org
Wed Dec 20 07:58:22 EST 2017


Stefan Krah <stefan at bytereef.org> added the comment:

Because in the example in msg308683 true lexical scoping should,
when processing g()'s name space, search for the name 'a' in the
lexically closest scope f(), find it there and conclude that
'a' cannot be global.

----------

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


More information about the Python-bugs-list mailing list