STINNER Victor <[EMAIL PROTECTED]> added the comment:
The TypeError("can't write str to text stream") comes from the newline
written by builtin_print().
Workaround: print(u"foo", end=u"\n", file=StringIO()).
----------
nosy: +haypo
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4618>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com