Skip to content

Commit f1f9675

Browse files
committed
#23251: Note that time.sleep affects the calling thread only.
This change parallels the language used in the unix man page.
1 parent e6cc701 commit f1f9675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/time.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ The module defines the following functions and data items:
342342

343343
.. function:: sleep(secs)
344344

345-
Suspend execution for the given number of seconds. The argument may be a
345+
Suspend execution of the calling thread for the given number of seconds.
346+
The argument may be a
346347
floating point number to indicate a more precise sleep time. The actual
347348
suspension time may be less than that requested because any caught signal will
348349
terminate the :func:`sleep` following execution of that signal's catching

0 commit comments

Comments
 (0)