Xiang Zhang added the comment:

> I think the old code unlikely will be broken if preserve an exception type 
> and don't change conditions for raising an error.

Currently there could be no error when the object gets a timezone. The timezone 
is simply discarded and only when microseconds comes to 0 there is a 
ValueError. I don't think the user code would prepare to catch the ValueError. 
I don't oppose make timestamp more strict but just not sure if it's suitable.


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to