Message159443
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'
>>> |
|
Date |
User |
Action |
Args |
2012-04-27 07:28:24 | flox | set | recipients:
+ flox, georg.brandl, vdupras |
2012-04-27 07:28:24 | flox | set | messageid: <1335511704.08.0.138278077219.issue2387@psf.upfronthosting.co.za> |
2012-04-27 07:28:23 | flox | link | issue2387 messages |
2012-04-27 07:28:23 | flox | create | |
|