[Python-Dev] Stdlib and timezones, again

Ethan Furman ethan at stoneleaf.us
Mon Oct 1 22:17:21 CEST 2012


Matthias Klose wrote:
> On 30.09.2012 20:18, Gregory P. Smith wrote:
>> priority:
>>   1) api call supplying tz data to the process.
>>   2) pytzdata module if it exists
>>   3) tz data from the underlying operating system
>>   4) error.
> 
> I disagree on this order, at least for Linux systems. the tzdata database is
> well managed on major Linux distributions and should be used for this reason.

The order exists this way to allow for customization.  If I have 1) 
downloaded the most recent, or 2) made customizations (for whatever 
reason) then Python needs to use it.

Can I break stuff this way?  Sure.  Is it Python's responsibility to 
stop me?  Nope.  Consenting adults, and all that.

~Ethan~


More information about the Python-Dev mailing list