This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients bendotc, rhettinger
Date 2018-01-14.01:08:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515892098.1.0.467229070634.issue32547@psf.upfronthosting.co.za>
In-reply-to
Content
This isn't a bug.  The docs specify that *fieldnames* is a sequence, "The fieldnames parameter is a sequence of keys that identify the order in which values in the dictionary passed to the writerow() method are written to the csvfile."

We could make this a feature request. but as far as I can tell there isn't a real use case, nor has one ever arisen in the decade long history of the module.  Adding the list(fieldnames) behavior could be done without a backwards compatibility issue, but it does incur an overhead that would be paid by all existing working code.
History
Date User Action Args
2018-01-14 01:08:18rhettingersetrecipients: + rhettinger, bendotc
2018-01-14 01:08:18rhettingersetmessageid: <1515892098.1.0.467229070634.issue32547@psf.upfronthosting.co.za>
2018-01-14 01:08:18rhettingerlinkissue32547 messages
2018-01-14 01:08:16rhettingercreate