Logged In: YES
user_id=80475
Which version are you using? I don't see the same thing:
>>> a = cStringIO.StringIO('the quick')
>>> type(a)
<type 'cStringIO.StringI'>
>>> a.__class__
<type 'cStringIO.StringI'>
>>> b = cStringIO.StringIO()
>>> type(b)
<type 'cStringIO.StringO'>
>>> b.__class__
<type 'cStringIO.StringO'>
>>> dir(a)
['__class__', '__delattr__', '__doc__', '__getattribute__', '__h
ash__', '__init__', '__iter__', '__new__', '__reduce__', '__redu
ce_ex__', '__repr__', '__setattr__', '__str__', 'close', 'flush', 'g
etvalue', 'isatty', 'next', 'read', 'readline', 'readlines', 'reset', '
seek', 'tell', 'truncate']
>>> dir(b)
['__class__', '__delattr__', '__doc__', '__getattribute__', '__h
ash__', '__init__', '__iter__', '__new__', '__reduce__', '__redu
ce_ex__', '__repr__', '__setattr__', '__str__', 'close', 'flush', 'g
etvalue', 'isatty', 'next', 'read', 'readline', 'readlines', 'reset', '
seek', 'softspace', 'tell', 'truncate', 'write', 'writelines']
|