[Python-bugs-list] [ python-Bugs-678519 ] StringIO self-iterator
SourceForge.net
noreply@sourceforge.net
Thu, 24 Apr 2003 08:52:17 -0700
Bugs item #678519, was opened at 2003-01-31 21:26
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678519&group_id=5470
Category: Python Library
Group: Feature Request
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Raymond Hettinger (rhettinger)
Summary: StringIO self-iterator
Initial Comment:
As requested by Guido at http://mail.python.org/pipermail/python-dev/2003-January/032629.html , this is a feature request to make both cStringIO and StringIO self-iterators (``__iter__()`` returns self and the class defines ``next()``). This is so they can be more like files.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-04-24 10:52
Message:
Logged In: YES
user_id=80475
Applied 695710 as:
Modules\cStringIO.c 2.40
Lib\test\test_StringIO.py 1.15
----------------------------------------------------------------------
Comment By: Michael Stone (mbrierst)
Date: 2003-03-01 14:52
Message:
Logged In: YES
user_id=670441
StringIO.StringIO already appears to be a self-iterator.
Patch 695710 will make cStringIO.StringIO a self-iterator
as well.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678519&group_id=5470