PEP 305 - CSV File API

John Machin sjmachin at
Mon Feb 3 21:12:50 CET 2003

"John Roth" <johnroth at> wrote in message news:<v3sv11esgjpje2 at>...
> "John Machin" <sjmachin at> wrote in message
> news:c76ff6fc.0302030215.82eb073 at
> > Carlos Ribeiro <cribeiro at> wrote in message
>  news:<mailman.1044231844.17120.python-list at>...
> > > And last, but not least, the CSV library has to take into account
>  other things
> > > that happen to be problematic, and that are locale-related:
> > >
> > > - reading dates from a CSV file
> >
> > Certainly dates are a problem in that they are presented differently
> > to users in different locales, and most people don't bother to use the
> > ISO standard when writing to a file --- however, in what way is
> > reading dates from a CSV-format file any different to reading them
> > from any other format?
> It's not particularly different.

So the functionality for handling different data formats for dates
(and any other data-types) -- in fact any functionality that knows or
even suspects what the data type might be -- should be factored out
into another layer.

More information about the Python-list mailing list