STINNER Victor added the comment:
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", "
New submission from mailination:
python/Modules/cStringIO.c:648
"cStringIO.StringI",/*tp_name*/
maybe Should be
"cStringIO.StringIO",/*tp_name*/
--
components: Library (Lib)
messages: 209099
nosy: mailination
priority: normal
severit