[Python-Dev] PEP 431 Time zone support improvements - Update
solipsis at pitrou.net
Sat Dec 29 20:04:19 CET 2012
On Sat, 29 Dec 2012 19:56:43 +0100
Lennart Regebro <regebro at gmail.com> wrote:
> On Sat, Dec 29, 2012 at 7:54 PM, Lennart Regebro <regebro at gmail.com> wrote:
> > On Sat, Dec 29, 2012 at 7:38 PM, Tres Seaver <tseaver at palladion.com>wrote:
> >> - -Lots for enabling fallback by default except on platforms known not to
> >> have their own database
> > Well, it's the same thing really. If the platform does have a database,
> > the fallback will not be used.
> > Of course, there is the case of the database existing on the platform
> > normally, but somebody for some reason deleting the files, but I don't
> > think that case deserves an error message.
> > I also expect that most platform distributions, such as for Ubuntu, will
> > not include the fallback database, as it will never be used. I'll add
> > something about that and that we need to raise an error of some sort (any
> > opinions on what?) if no database is found at all.
> Actually I already added that, but opinions on what error to raise are
> still welcome. Currently it says:
> If no database is found an ``UnknownTimeZoneError`` or subclass thereof
> be raised with a message explaining that no zoneinfo database can be
> but that you can install one with the ``tzdata-update`` package.
Why should we care about that situation if we *do* provide a database?
Distributions can decide to exclude some files from their packages, but
it's their problem, not ours.
More information about the Python-Dev