From f1f9675b8a83ed6d84f212d1b8fb036c40e6c8d8 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sun, 25 Jan 2015 15:45:14 -0500 Subject: #23251: Note that time.sleep affects the calling thread only. This change parallels the language used in the unix man page. --- Doc/library/time.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 829488f..eb073aa 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -342,7 +342,8 @@ The module defines the following functions and data items: .. function:: sleep(secs) - Suspend execution for the given number of seconds. The argument may be a + Suspend execution of the calling thread for the given number of seconds. + The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the :func:`sleep` following execution of that signal's catching -- cgit v0.12 From 1923b627b50d26f37065e7ad51fc7eeccd7ac92f Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sun, 25 Jan 2015 15:46:22 -0500 Subject: #23215: reflow paragraph. --- Doc/library/time.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index eb073aa..8d8b7d4 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -343,12 +343,12 @@ The module defines the following functions and data items: .. function:: sleep(secs) Suspend execution of the calling thread for the given number of seconds. - The argument may be a - floating point number to indicate a more precise sleep time. The actual - suspension time may be less than that requested because any caught signal will - terminate the :func:`sleep` following execution of that signal's catching - routine. Also, the suspension time may be longer than requested by an arbitrary - amount because of the scheduling of other activity in the system. + The argument may be a floating point number to indicate a more precise sleep + time. The actual suspension time may be less than that requested because any + caught signal will terminate the :func:`sleep` following execution of that + signal's catching routine. Also, the suspension time may be longer than + requested by an arbitrary amount because of the scheduling of other activity + in the system. .. function:: strftime(format[, t]) -- cgit v0.12