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

2012年12月29日 23:05:39 -0800

On Sat, Dec 29, 2012 at 11:59 PM, Terry Reedy <[email protected]> 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
_______________________________________________
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