SilentGhost added the comment:

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.

----------
keywords: +patch
nosy: +SilentGhost
stage:  -> needs patch
Added file: http://bugs.python.org/file38388/issue23607_python.diff

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

Reply via email to