PEP 305 - CSV File API

John Roth johnroth at ameritech.net
Mon Feb 3 09:28:16 EST 2003


"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. What is needed is the ability to
associate
the necessary parameters with a date column to do the application
dependent "correct" transformation, based on the available date
libraries.

Otherwise you've got to go through a second cleanup step.

John Roth






More information about the Python-list mailing list