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 vstinner
Recipients SilentGhost, ashishnitinpatil, berker.peksag, lsowen, mblahay, r.david.murray, rhettinger, skip.montanaro, vstinner, zach.ware
Date 2019-05-10.01:52:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557453170.17.0.481067297428.issue27497@roundup.psfhosted.org>
In-reply-to
Content
I merged PR 12306. Thanks Ashish Nitin Patil for the initial patch, thanks Rémi Lapeyre to converting it to a PR, thanks Logan for the initial bug report ;-)

Sadly, this change is a new feature and so cannot be backported to 2.7 or 3.7. The workaround is override the method:

    def writeheader(self):
        header = dict(zip(self.fieldnames, self.fieldnames))
        return self.writerow(header)
History
Date User Action Args
2019-05-10 01:52:50vstinnersetrecipients: + vstinner, skip.montanaro, rhettinger, r.david.murray, SilentGhost, berker.peksag, zach.ware, ashishnitinpatil, lsowen, mblahay
2019-05-10 01:52:50vstinnersetmessageid: <1557453170.17.0.481067297428.issue27497@roundup.psfhosted.org>
2019-05-10 01:52:50vstinnerlinkissue27497 messages
2019-05-10 01:52:50vstinnercreate