[issue19481] IDLE hangs while printing instance of Unicode subclass

Serhiy Storchaka report at bugs.python.org
Mon Nov 4 09:50:34 CET 2013


Serhiy Storchaka added the comment:

And here is a patch for 3.x. Without it following code hangs.

>>> class S(str): pass

>>> import sys
>>> sys.stdout.write('\u20ac')
€1
>>> sys.stdout.write(S('\u20ac'))
€1

----------
Added file: http://bugs.python.org/file32491/idle_write_string_subclass-3.x.patch

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


More information about the Python-bugs-list mailing list