[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Serhiy, David, and Inada Marking this as closed. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker _

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Or use DictReader with an explicit fieldnames argument. -- ___ Python tracker ___ ___ Python-bugs-

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm with Inada and David. This use case looks very specific. If you need to handle a CSV file with duplicated header, you can use the regular reader or implement your own specialised reader. -- nosy: +serhiy.storchaka ___

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread R. David Murray
R. David Murray added the comment: My opinion stated in that issue is still the same: I don't think this is a bug. I don't think automatic handling of fieldnames when no other dictionary features are retained is worth the complication to the API. So I'm still -1. We'll see what other people

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread foxfluff
foxfluff added the comment: David: You are correct that the goal is to handle CSVs with duplicate headers, and that the main intention is to have some of the behavior of DictReader without the destruction of data (such as the auto population of field names as you stated). It is not the intent

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread R. David Murray
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 aut

[issue29614] Additional implementation alternative to DictReader

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: I don't feel TableReader is really useful. Would you show some realistic example when TableReader is better than normal csv.Reader? -- nosy: +inada.naoki ___ Python tracker _

[issue29614] Additional implementation alternative to DictReader

2017-02-21 Thread foxfluff
Changes by foxfluff : -- pull_requests: +187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue29614] Additional implementation alternative to DictReader

2017-02-21 Thread Kirk Cieszkiewicz Jr.
New submission from Kirk Cieszkiewicz Jr.: As discussed in the following: https://bugs.python.org/issue17537 https://mail.python.org/pipermail/python-ideas/2013-January/018844.html DictReader has a feature that will destroy data without warning if fieldnames had duplicate values (manual or auto