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.

Author rhettinger
Recipients paullongnet, r.david.murray, rhettinger
Date 2017-11-24.22:33:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511562780.8.0.213398074469.issue32116@psf.upfronthosting.co.za>
In-reply-to
Content
I'm also -1 on this feature request.  The open and closing of files is orthogonal to what you do with an open file.  Likewise, iterators are orthogonal to how they are consumed (for-loops, list(), set(), etc).

FWIW, csv.Reader object is an iterator that can be fed directly to list():

    result = list(csv.reader(fileobj)
History
Date User Action Args
2017-11-24 22:33:00rhettingersetrecipients: + rhettinger, r.david.murray, paullongnet
2017-11-24 22:33:00rhettingersetmessageid: <1511562780.8.0.213398074469.issue32116@psf.upfronthosting.co.za>
2017-11-24 22:33:00rhettingerlinkissue32116 messages
2017-11-24 22:33:00rhettingercreate