Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

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)

----------
nosy: +rhettinger
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32116>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to