[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target
Ezio Melotti
report at bugs.python.org
Fri Apr 19 06:53:22 CEST 2013
Ezio Melotti added the comment:
Attached a sketchy proof of concept. It only checks for locals, but it should probably check for globals too. Does the approach make sense?
----------
keywords: +patch
nosy: +benjamin.peterson
type: -> enhancement
Added file: http://bugs.python.org/file29936/issue17792.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
More information about the Python-bugs-list
mailing list