[Python-Dev] StringIO not an iterator?

Guido van Rossum guido@python.org
Fri, 31 Jan 2003 07:40:18 -0500


> >> I've just noticed that the StringIO in CVS hasn't been updated to be an
> >> iterator, like real file objects. This probably should be fixed before
> >> 2.3 is released.
> >
> >I think you mean cStringIO.
> 
> Actually, I meant StringIO, but I see that I had my details wrong -
> I was just accessing it incorrectly (it's not a self-iterator, and has
> no next() method). I'll get back in my box now. Thanks.

Well, maybe StringIO should be upgraded to be a self-iterator, to
more resemble files.

And cStringIO should probably be fixed as well.

Someome please check in the changes, upload a patch to SF, or at least
enter a bug report at SF!

--Guido van Rossum (home page: http://www.python.org/~guido/)