[issue1818] Add named tuple reader to CSV module

Skip Montanaro report at bugs.python.org
Sun Mar 8 20:18:19 CET 2009


Skip Montanaro <skip at pobox.com> added the comment:

I find this aspect of the proposal disturbing:

    .... If *fieldnames* is None the values in the 
    first row of the *csvfile* will be used as the fieldnames....

I don't think this should be implicit.  It makes the NamedTupleReader
semantically different from the vanilla reader object which treats
every row of the file as data.  The use of the fieldnames argument
should be required for NamedTupleReader objects as it is for DictReader 
objects.

----------
message_count: 25.0 -> 26.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1818>
_______________________________________


More information about the Python-bugs-list mailing list