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 berker.peksag
Recipients berker.peksag, krypten, r.david.murray, rhettinger, samwyse, serhiy.storchaka, skip.montanaro
Date 2016-03-03.07:09:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456988995.16.0.821323537962.issue23041@psf.upfronthosting.co.za>
In-reply-to
Content
I was thinking adding a more flexible API like:

    ...
    spamwriter = csv.writer(csvfile, quoting_callable=lambda field: field is not None)
    ...

But that would require too much change in the csv module (or at least its implementation wouldn't be trivial).

I agree that subclassing DictWriter is a much better way to achieve this.
History
Date User Action Args
2016-03-03 07:09:55berker.peksagsetrecipients: + berker.peksag, skip.montanaro, rhettinger, samwyse, r.david.murray, serhiy.storchaka, krypten
2016-03-03 07:09:55berker.peksagsetmessageid: <1456988995.16.0.821323537962.issue23041@psf.upfronthosting.co.za>
2016-03-03 07:09:55berker.peksaglinkissue23041 messages
2016-03-03 07:09:54berker.peksagcreate