[issue1031213] Use correct encoding for printing SyntaxErrors

atsuo ishimoto report at bugs.python.org
Thu Oct 11 09:44:29 CEST 2007


atsuo ishimoto added the comment:

Codecs would hardly ever raises exception here. 
Usually, exception raised here would be a MemoryError. The unicode 
string we are trying to encode is just decoded by same codec. If codec
raises exception other than MemoryError, the codec will likely have problem.

I attached a script to print exception raised by codec. I wrote a "buggy" 
encoder, which never return string but raises an exception.

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1031213>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: display_exception.py
Type: text/x-python
Size: 477 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071011/81390b85/attachment.py 


More information about the Python-bugs-list mailing list