Message306927
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) |
|
Date |
User |
Action |
Args |
2017-11-24 22:33:00 | rhettinger | set | recipients:
+ rhettinger, r.david.murray, paullongnet |
2017-11-24 22:33:00 | rhettinger | set | messageid: <1511562780.8.0.213398074469.issue32116@psf.upfronthosting.co.za> |
2017-11-24 22:33:00 | rhettinger | link | issue32116 messages |
2017-11-24 22:33:00 | rhettinger | create | |
|