[issue14613] time.time can return None or NaN

Mark Dickinson report at bugs.python.org
Wed Apr 18 15:14:26 CEST 2012


Mark Dickinson <dickinsm at gmail.com> added the comment:

> It is possible that it returns NaN

How is that possible?  I can't see any way that the Python 2.7 implementation of floattime could return a NaN.  In each case, floattime appears to be extracting integer fields from some suitable struct, and then combining them to produce a double;  I can't see any scope for producing a NaN in any of the formulas used.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14613>
_______________________________________


More information about the Python-bugs-list mailing list