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.

classification
Title: cStringIO has reset(), but StringIO does not
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: cxdunn, rhettinger
Priority: normal Keywords:

Created on 2005-04-28 01:15 by cxdunn, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg54494 - (view) Author: Christopher Dunn (cxdunn) Date: 2005-04-28 01:15
from cStringIO import StringIO
s = StringIO()
s.reset()

from StringIO import StringIO
s = StringIO()
s.reset() # error!


reset() is not critical, since it just does the same
thing as seek(0), but cStringIO and StringIO are
supposed to be interchangeable.

-cxdunn
msg54495 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-04-28 04:57
Logged In: YES 
user_id=80475

On the surface, it would seem like a good idea; however,
reset() was a mistake that should not be propagated.  The
API should be as file-like as possible.  Since there is no
file.reset(), there should not be a StringO.reset().
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41915
2005-04-28 01:15:03cxdunncreate