[issue1818] Add named tuple reader to CSV module
Skip Montanaro
report at bugs.python.org
Thu Feb 26 20:02:05 CET 2009
Skip Montanaro <skip at pobox.com> added the comment:
Hrm... I replied twice by email. Only one comment appears to have
survived the long trip. Here's my second reply:
Rob> NamedTupleReader and NamedTupleWriter should be inverses. This
Rob> means that NamedTupleWriter needs to write headers. This should
Rob> produce identical output as the dict writer example, but it's much
Rob> cleaner.
You're assuming that one instance of these classes will read or write an
entire file. What if you want to append lines to an existing CSV file or
pick up reading a file with a new reader which has already be partially
processed?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1818>
_______________________________________
More information about the Python-bugs-list
mailing list