Re: [Python-Dev] PEP 431 Time zone support improvements - Update

2012年12月29日 11:08:14 -0800

On 2012年12月29日 19:56:43 +0100
Lennart Regebro <[email protected]> wrote:
> On Sat, Dec 29, 2012 at 7:54 PM, Lennart Regebro <[email protected]> wrote:
> 
> > On Sat, Dec 29, 2012 at 7:38 PM, Tres Seaver <[email protected]>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
> will
> be raised with a message explaining that no zoneinfo database can be
> found,
> 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.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to