[Python-Dev] Stdlib and timezones, again (original) (raw)

Barry Warsaw barry at python.org
Mon Oct 1 17:25:08 CEST 2012


On Sep 30, 2012, at 02:47 PM, Lennart Regebro wrote:

The problem with including pytz in the stdlib is that it contains the tz/zoneinfo/Olson database, and it updates much more often than Python does.

Why include the database in Python at all?

If you have an OS that keeps the system tz data up-to-date, I can't think of any reason why you wouldn't want to use it.

If you don't have the data, why not include information in the documentation for how to download and install the database in a location that Python will search for, along with information on how to enable that? You could even provide a nice script that would download, install, and optionally enable that tz data's use.

I think that would cover all the bases:

Cheers, -Barry



More information about the Python-Dev mailing list