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 mailination, vstinner
Date 2014-01-24.17:17:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390583857.03.0.626385374225.issue20382@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think that it is a typo. cStringIO.StringIO(str) returns a "StringI" object, whereas cStringIO.StringIO() returns a "StringO" object.

$ python
Python 2.7.5 (default, Nov 12 2013, 16:45:54) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cStringIO
>>> cStringIO.StringIO('abc')
<cStringIO.StringI object at 0x7f407d1dae88>
>>> cStringIO.StringIO()
<cStringIO.StringO object at 0x7f407d0f4e68>
History
Date User Action Args
2014-01-24 17:17:37vstinnersetrecipients: + vstinner, mailination
2014-01-24 17:17:37vstinnersetmessageid: <1390583857.03.0.626385374225.issue20382@psf.upfronthosting.co.za>
2014-01-24 17:17:36vstinnerlinkissue20382 messages
2014-01-24 17:17:36vstinnercreate