PEP 321: Date/Time Parsing and Formatting

John Roth newsgroups at jhrothjr.com
Tue Nov 18 07:54:03 EST 2003


"Paddy McCarthy" <paddy3118 at netscape.net> wrote in message
news:2ae25c6b.0311172147.65058189 at posting.google.com...

> I am in favour of there being an intelligent  'guess the format'
> routine  that would be easy to use, but maybe computationally
> inefficient, backed up by a computationally efficient routine where
> you specify the format.

The trouble with "guess the format" is that it's not possible
to do it correctly in the general case from one sample.
Given enough samples of one consistent format, it's
certainly possible. However, that's a two pass process.

John Roth

>
> Cheers, Paddy.






More information about the Python-list mailing list