Alexander Belopolsky added the comment: Attached patch fixes the issue, but produces a slightly different result:
>>> timedelta(seconds=1)*0.6112295 datetime.timedelta(0, 0, 611230) Note that C implementation is probably buggy: >>> from datetime import * >>> timedelta(seconds=1)*0.6112295 datetime.timedelta(0, 0, 611229) >>> timedelta(seconds=0.6112295) datetime.timedelta(0, 0, 611230) See msg194311 in #8860. ---------- keywords: +patch Added file: http://bugs.python.org/file38234/issue23521.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23521> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com