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 <[email protected]>
<http://bugs.python.org/issue19481>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com