[issue8130] except-as in Py3 eats variables

Stefan Behnel report at bugs.python.org
Sat Mar 13 08:45:09 CET 2010


Stefan Behnel <scoder at users.sourceforge.net> added the comment:

I knew that the variable was supposed to go out of scope when leaving the except block, but I wasn't aware that this was supposed to be done using (the equivalent of) a 'del'. Were the side-effects of deleting variables defined outside of the try-except considered negligible at the time? I can't see a warning about that in the docs.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8130>
_______________________________________


More information about the Python-bugs-list mailing list