STINNER Victor added the comment:

I rewrite the implementation of this issue 2 or 3 times. At the end, I decided 
to rewrite it again with a more incremental approach: add the new API, use the 
new API, and then drop slowly the old API.

I was used to rewrite the implementation multiple times to fix issues in the 
API and enhance the implementation. The new API now handles better rounding 
with more unit tests.

The datetime module only uses the new API for the datetime.datetime() 
constructor. It's not used for datetime.datetime.fromtimestamp(), because 
_PyTime_t is limited to a range of [-292 years; 292 years]. The datetime module 
supports a much large range: year in range [1; 9999]. So some parts of the old 
API will survive for the datetime module.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22117>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to