PEP 305 - CSV File API

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


"John Roth" <johnroth at ameritech.net> wrote in message news:<v3sv11esgjpje2 at news.supernews.com>...
> "John Machin" <sjmachin at lexicon.net> wrote in message
> news:c76ff6fc.0302030215.82eb073 at posting.google.com...
> > Carlos Ribeiro <cribeiro at mail.inet.com.br> wrote in message
>  news:<mailman.1044231844.17120.python-list at python.org>...
> > > 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