[Python-ideas] csv.DictReader could handle headers more intelligently.

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Jan 24 09:37:55 CET 2013


2013/1/24 Steven D'Aprano <steve at pearwood.info>

> -1 to adding optional parameters that change the behaviour of a class.


Unfortunately there is a precedent with csv.DictWriter:
extrasaction='raise' or 'ignore'.
And the feature is close to the one proposed here: how to deal with
"invalid" data.

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130124/7dcd2798/attachment.html>


More information about the Python-ideas mailing list