This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SilentGhost
Recipients SilentGhost, belopolsky, lemburg, serhiy.storchaka
Date 2015-03-08.15:50:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425829835.79.0.624503292878.issue23607@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the python-only fix that eliminates TypeError and produces correct number of milliseconds. The problem with C implementation lies in _PyTime_ObjectToDenominator function where there is an explicit check for a float. This check could be relaxed to include decimals as the rest of the code seem to work fine with decimal. I'm not entirely sure how that could be done though.
History
Date User Action Args
2015-03-08 15:50:35SilentGhostsetrecipients: + SilentGhost, lemburg, belopolsky, serhiy.storchaka
2015-03-08 15:50:35SilentGhostsetmessageid: <1425829835.79.0.624503292878.issue23607@psf.upfronthosting.co.za>
2015-03-08 15:50:35SilentGhostlinkissue23607 messages
2015-03-08 15:50:35SilentGhostcreate