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 vstinner
Recipients loewis, mark.dickinson, michael.foord, rye, vstinner
Date 2012-04-19.23:34:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> So NaN is a possible result from time.time()?

Oops. I don't know if it is possible. I just know that it cannot return None :-)

_PyTime_gettimeofday() fills a structure having two integer fields (tv_sec, tv_usec), and floattime() uses these fields to compute a double:

static PyObject*
    _PyTime_timeval t;
    return PyFloat_FromDouble((double)t.tv_sec + t.tv_usec * 1e-6);

I don't see how "(double)t.tv_sec + t.tv_usec * 1e-6" can generate NaN.
Date User Action Args
2012-04-19 23:34:10vstinnersetrecipients: + vstinner, loewis, mark.dickinson, michael.foord, rye
2012-04-19 23:34:10vstinnersetmessageid: <>
2012-04-19 23:34:09vstinnerlinkissue14613 messages
2012-04-19 23:34:09vstinnercreate