]> granicus.if.org Git - python/commit
Issue #23646: Enhance precision of time.sleep() and socket timeout when
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Mar 2015 00:42:20 +0000 (01:42 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Mar 2015 00:42:20 +0000 (01:42 +0100)
commit9a8089b32adee874caefbe2a96096998625c5a78
treebf91050cbe41ad7811a975acc3bab8ed4ee97c02
parent4fa99cdb4c5f53d6fa86ef223ae613cb1a8783f8
Issue #23646: Enhance precision of time.sleep() and socket timeout when
interrupted by a signal

Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro.
The _PyTime_ADD_SECONDS only supported an integer number of seconds, the
_PyTime_AddDouble() has subsecond resolution.
Include/pytime.h
Lib/test/eintrdata/eintr_tester.py
Modules/socketmodule.c
Modules/timemodule.c
Python/pytime.c