[Python-Dev] PEP 431 Time zone support improvements
Lennart Regebro
regebro at gmail.com
Sat Dec 29 19:56:43 CET 2012
More information about the Python-Dev mailing list
Sat Dec 29 19:56:43 CET 2012
- Previous message: [Python-Dev] PEP 431 Time zone support improvements - Update
- Next message: [Python-Dev] PEP 431 Time zone support improvements - Update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20121229/0a687fd1/attachment.html>
- Previous message: [Python-Dev] PEP 431 Time zone support improvements - Update
- Next message: [Python-Dev] PEP 431 Time zone support improvements - Update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list