[issue29614] Additional implementation alternative to DictReader

R. David Murray report at bugs.python.org
Wed Feb 22 09:56:45 EST 2017


R. David Murray added the comment:

Inada: I believe the goal is to be able to handle CSV files that have columns with duplicate names.  However, in that case one could just use the regular reader class.  The only advantage TableReader gives over the regular reader that I can see is that it automatically reads the header line and sets fieldnames.  I'm not sure that is enough motivation for introducing a whole new class.

It also doesn't address the issue the OP mentions, that columns are overwritten silently by DictReader.  However, that is a characteristic of dicts in Python in general, so I'm not sure I even see that as a bug.

Overall, I'm -1 on this proposal.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list