Ivan Levkivskyi <levkivs...@gmail.com> 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.

I think there is a chance to improve the error message here, but I didn't think 
about this carefully (in particular, a situation where `global` appears after 
the inner function `h` definition worries me).

----------

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

Reply via email to