[Python-Dev] PEP 431 Time zone support improvements (original) (raw)
Lennart Regebro regebro at gmail.com
Sun Dec 30 08:03:16 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 11:59 PM, Terry Reedy <tjreedy at udel.edu> wrote:
On 12/29/2012 3:16 PM, Lennart Regebro wrote:
Yes, but a comprehensible error message is useful even if somebody messed up the system/configuration.
Just reuse whatever exception type you create and add a sensible message. Hopefully, it will never be seen.
I haven't implemented this, but I suspect the code will in the end look for the tzdata module, which means that if it doesn't exist, the error raised is an ImportError.
//Lennart -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20121230/d17aa8a0/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 ]