[Python-checkins] cpython (2.7): #23251: note that time.sleep affects the current thread only.

r.david.murray python-checkins at python.org
Sun Jan 25 21:49:56 CET 2015


https://hg.python.org/cpython/rev/5e01c68cabbf
changeset:   94274:5e01c68cabbf
branch:      2.7
parent:      94268:c2bba3c9424b
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Jan 25 15:48:26 2015 -0500
summary:
  #23251: note that time.sleep affects the current thread only.

This is parallel to the language used in the unix man page.

files:
  Doc/library/time.rst |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/time.rst b/Doc/library/time.rst
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -222,7 +222,8 @@
 
 .. function:: sleep(secs)
 
-   Suspend execution for the given number of seconds.  The argument may be a
+   Suspend execution of the current 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list