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

Stefan Krah report at bugs.python.org
Tue Dec 19 09:22:11 EST 2017


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

I guess I'd vote for closing this, because the first Google result for "no binding for nonlocal" on Stackoverflow is quite clear.

The ideal message would be "'a' cannot be both global and nonlocal", but
it would probably complicate the compiler ever so slightly.

----------

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


More information about the Python-bugs-list mailing list