[issue32361] global / nonlocal interference : is this a bug, a feature or a design hole ?
Stefan Krah
report at bugs.python.org
Wed Dec 20 06:31:39 EST 2017
Stefan Krah <stefan at bytereef.org> added the comment:
> Stefan, your last example is formally speaking OK, if one reads the "Execution model" literally. The original example is however too
+ambiguous, so it is good that it triggers an error.
OK yes -- desirable, no. IMO execution models are not a great definition for scoping.
It certainly prevents Python scopes from being called "lexical scopes".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32361>
_______________________________________
More information about the Python-bugs-list
mailing list