[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target
Nick Coghlan
report at bugs.python.org
Fri Apr 19 05:15:03 CEST 2013
Nick Coghlan added the comment:
I don't think we want to mess with the control flow, as that would be even weirder and may interact strangely with else and finally clauses.
A SyntaxWarning would be unconditional (so it doesn't matter whether or not the exception is triggered at run time), happens at compile time (so developers will see it), but won't be triggered when loading from a cached bytecode file (so end users typically won't see it).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
More information about the Python-bugs-list
mailing list