Author flox
Recipients flox, georg.brandl, vdupras
Date 2012-04-27.07:28:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335511704.08.0.138278077219.issue2387@psf.upfronthosting.co.za>
In-reply-to
Content
It seems the documentation is not enough accurate.

"Unlike the StringIO module, this module is not able to accept Unicode strings that cannot be encoded as plain ASCII strings."

I understand that u'foo' can be encoded as plan ASCII, however it does not behave correctly with cStringIO.


Python 2.7.3 (default, Apr 14 2012, 01:49:35) 
>>> from cStringIO import StringIO
>>> StringIO(u'foo').read()
'f\x00o\x00o\x00'
>>>
History
Date User Action Args
2012-04-27 07:28:24floxsetrecipients: + flox, georg.brandl, vdupras
2012-04-27 07:28:24floxsetmessageid: <1335511704.08.0.138278077219.issue2387@psf.upfronthosting.co.za>
2012-04-27 07:28:23floxlinkissue2387 messages
2012-04-27 07:28:23floxcreate