[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target
Ezio Melotti
report at bugs.python.org
Fri Apr 19 02:01:42 CEST 2013
Ezio Melotti added the comment:
Maybe we could raise a warning when the deleted name already exists in the local namespace?
(FWIW I knew about the fact that the name gets deleted, and still managed to get bitten by it a couple of times.)
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
More information about the Python-bugs-list
mailing list