[Python-ideas] csv.DictReader could handle headers more intelligently.
Mark Hackett
mark.hackett at metoffice.gov.uk
Thu Jan 24 11:33:01 CET 2013
On Thursday 24 Jan 2013, Amaury Forgeot d'Arc wrote:
> 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.
>
Just because you did wrong before doesn't mean you need to do it wrong again!
More information about the Python-ideas
mailing list