[issue14368] floattime() should not raise an exception

2012-03-26 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14368] floattime() should not raise an exception

2012-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 206c45f45236 by Victor Stinner in branch 'default': Issue #14368: _PyTime_gettimeofday() cannot fail http://hg.python.org/cpython/rev/206c45f45236 -- nosy: +python-dev ___ Python tracker

[issue14368] floattime() should not raise an exception

2012-03-19 Thread STINNER Victor
New submission from STINNER Victor : floattime() raises an OSError if _PyTime_gettimeofday() returns secs=0 and usec=0. This is wrong because _PyTime_gettimeofday() cannot fail and secs=0 is valid if the current time is 0 (1970.1.1 at 12:00 UTC). Extract of _PyTime_gettimeofday() "doc": /* Si