[Python-ideas] Serialization of CSV vs. JSON

Michael Selik mike at selik.org
Fri Nov 2 14:41:40 EDT 2018


On Fri, Nov 2, 2018 at 10:31 AM Philip Martin <philip.martin2007 at gmail.com>
wrote:

> [Why don't] csv writer and DictWriter provide ...
> serialization/deserialization hooks?
>

Do you have a specific use-case in mind?

My intuition is that comprehensions provide sufficient functionality such
that changing the csv module interface is unnecessary. Unlike JSON, CSV
files are easy to read in a streaming/iterator fashion, so the module
doesn't need to provide a way to intercept values during a holistic
encode/decode.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181102/55ea005e/attachment.html>


More information about the Python-ideas mailing list