[issue20382] Typo in cStringIO tp_name

STINNER Victor report at bugs.python.org
Fri Jan 24 18:17:37 CET 2014


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", "copyright", "credits" or "license" for more information.
>>> import cStringIO
>>> cStringIO.StringIO('abc')
<cStringIO.StringI object at 0x7f407d1dae88>
>>> cStringIO.StringIO()
<cStringIO.StringO object at 0x7f407d0f4e68>

----------
nosy: +haypo
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20382>
_______________________________________


More information about the Python-bugs-list mailing list