[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target
Barry A. Warsaw
report at bugs.python.org
Fri Apr 19 02:21:50 CEST 2013
Barry A. Warsaw added the comment:
On Apr 19, 2013, at 12:01 AM, Ezio Melotti wrote:
>
>Maybe we could raise a warning when the deleted name already exists in the
>local namespace?
Ideally, I think a SyntaxError if you could detect a previously bound name in
the namespace being used as an exception target.
-Barry
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
More information about the Python-bugs-list
mailing list