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

Ezio Melotti report at bugs.python.org
Tue Apr 23 15:09:48 CEST 2013


Ezio Melotti added the comment:

I considered that, but is it guaranteed that the output encoding is UTF-8?  What if the warning is printed on a Windows console that uses cp1252?  I also considered encoding it and then use PyBytes_AsString, but I was hoping in something simpler (also I'm not sure where to get the right encoding).

----------

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


More information about the Python-bugs-list mailing list