Alexander Belopolsky added the comment:

I probably misremembered a different issue.  See msg194311.

>>> timedelta(seconds=0.6112295) == timedelta(seconds=1)*0.6112295
False

I thought the problem there was that the same float was converted to one 
decimal by str() and to a different decimal by timedelta.  But now it looks 
like it was something else.

Does your algorithm guarantee that any float that is displayed with 6 decimal 
places or less will convert to a datetime or timedelta with microseconds 
matching the fractional part?

----------

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

Reply via email to