Berker Peksag added the comment:

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.

----------
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23041>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to