Converting DD MM YYYY into YYYY-MM-DD?

Stefan Behnel stefan_ml at behnel.de
Tue Aug 18 13:55:06 CEST 2009


Ben Finney wrote:
>>> The principles of handling text in Python: Get it to internal Unicode
>>> objects as soon as possible, handle it as Unicode for as long as
>>> possible, and only encode it to some byte stream for output as late as
>>> possible.
> Again, note that these recommendations hold for *any* text in Python,
> with or without accents; once you accept that text is best handled in
> Unicode, there's little sense in making an exception for the limited
> subset that happens to be representable in ASCII.

If the QOTW wasn't meant for fun, I'd vote for this. This is very good advice.

Stefan



More information about the Python-list mailing list