[issue32116] CSV import and export simplified
Raymond Hettinger
report at bugs.python.org
Fri Nov 24 17:33:00 EST 2017
Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue32116>
_______________________________________
More information about the Python-bugs-list
mailing list