Eric V. Smith <e...@trueblade.com> added the comment:

Thanks for the great explanation, Steven. And I agree with Josh that changing 
the exception text would lead to blindly adding nonlocal or global in a 
superficial attempt to get the code to work. The much more likely problem is 
already mentioned: reference before assignment.

So, I'm going to close this.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> behavior

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

Reply via email to