[issue1818] Add named tuple reader to CSV module
Ilia Kurenkov
report at bugs.python.org
Mon Apr 20 06:07:57 CEST 2015
Ilia Kurenkov added the comment:
As my contribution during the sprints at PyCon 2015, I've tweaked Jervis's patch a little and updated the tests/docs to work with Python 3.5.
My only real change was placing the basic reader object inside a generator expression that filters out empty lines. Being partial to functional programming I find this removes some of the code clutter in __next__(), letting that method focus on turning rows into tuples.
Hopefully this will rekindle the discussion!
----------
nosy: +copper-head
versions: +Python 3.5
Added file: http://bugs.python.org/file39139/1818_py35.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1818>
_______________________________________
More information about the Python-bugs-list
mailing list