This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients exarkun, vstinner
Date 2008-12-10.13:38:18
SpamBayes Score 8.664581e-05
Marked as misclassified No
Message-id <1228916299.4.0.0841762413467.issue4618@psf.upfronthosting.co.za>
In-reply-to
Content
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()).
History
Date User Action Args
2008-12-10 13:38:19vstinnersetrecipients: + vstinner, exarkun
2008-12-10 13:38:19vstinnersetmessageid: <1228916299.4.0.0841762413467.issue4618@psf.upfronthosting.co.za>
2008-12-10 13:38:18vstinnerlinkissue4618 messages
2008-12-10 13:38:18vstinnercreate