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 samwyse
Recipients krypten, r.david.murray, rhettinger, samwyse, skip.montanaro
Date 2014-12-15.21:17:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418678222.1.0.127488086661.issue23041@psf.upfronthosting.co.za>
In-reply-to
Content
Skip, I don't have any visibility into how the Java program I'm feeding data into works, I'm just trying to replicate the csv files that it exports as accurately as possible.  It has several other quirks, but I can replicate all of them using Dialects; this is the only "feature" I can't.  The files I'm looking at have quoted strings and numbers, but there aren't any quoted empty strings.  I'm using a DictWriter to create similar csv files, where missing keys are treated as values of None, so I'd like those printed without quotes.  If we also want to print empty strings without quotes, that wouldn't impact me at all.

Besides my selfish needs, this could be useful to anyone wanting to reduce the save of csv files that have lots of empty fields, but wants to quote all non-empty values.  This may be an empty set, I don't know.
History
Date User Action Args
2014-12-15 21:17:02samwysesetrecipients: + samwyse, skip.montanaro, rhettinger, r.david.murray, krypten
2014-12-15 21:17:02samwysesetmessageid: <1418678222.1.0.127488086661.issue23041@psf.upfronthosting.co.za>
2014-12-15 21:17:02samwyselinkissue23041 messages
2014-12-15 21:17:01samwysecreate