[Python-Dev] Stdlib and timezones, again

Zachary Ware zachary.ware+pydev at gmail.com
Mon Oct 1 15:57:10 CEST 2012


Re: to bundle or not to bundle

What about having an included database that issues a (silence-able) warning
any time it is used/imported/etc.? Have it say something to the effect of
"Warning, the Olson database included with Python is likely to be outdated,
please see <webpage> for information" where <webpage> (which may just be
the doc page for the module) spells out why it's outdated, why it's not
possible for it to be kept up to date, that this version may still work for
you depending on application and how to silence the warning, and how to get
the latest version via pypi or otherwise.

As far as preference of database, I would think the best route would be to
provide the ability to set the order you want to look in, with the default
being:
1) user specified source (usually not one of the below)
2) updated tzdb from pypi
3) OS's tzdb
4) included tzdb (with warning)

My $0.02USD, for what they're worth :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20121001/fe3e7422/attachment.html>


More information about the Python-Dev mailing list