[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

Nick Coghlan report at bugs.python.org
Fri Apr 19 03:29:05 CEST 2013


Nick Coghlan added the comment:

It seems to me that this kind of dubious-but-legal code is what http://docs.python.org/3/library/exceptions.html#SyntaxWarning is designed to handle.

Something like "SyntaxWarning: implicitly deleted exception variable referenced after end of except clause".

----------
nosy: +ncoghlan

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


More information about the Python-bugs-list mailing list