diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-19 20:54:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-19 20:54:09 (GMT) |
commit | 79d68f929d8def878766965f513b628023f809b5 (patch) | |
tree | 943c927ae839eb2b115f88d997cd29094ddd23ab /Doc | |
parent | 0ed56a0b421e02da3ed3626a5b9e0ad076f68ce0 (diff) | |
download | cpython-79d68f929d8def878766965f513b628023f809b5.zip cpython-79d68f929d8def878766965f513b628023f809b5.tar.gz cpython-79d68f929d8def878766965f513b628023f809b5.tar.bz2 |
Issue #23646: If time.sleep() is interrupted by a signal, the sleep is now
retried with the recomputed delay, except if the signal handler raises an
exception (PEP 475).
Modify also test_signal to use a monotonic clock instead of the system clock.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/time.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 6bfd521..3d335c8 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -350,6 +350,11 @@ The module defines the following functions and data items: requested by an arbitrary amount because of the scheduling of other activity in the system. + .. versionchanged:: 3.5 + The function now sleeps at least *secs* even if the sleep is interrupted + by a signal, except if the signal handler raises an exception (see + :pep:`475` for the rationale). + .. function:: strftime(format[, t]) |