Skip to content

Commit 58f0201

Browse files
committed
Merge: #23215: note that time.sleep affects the current thread only.
2 parents cc522bd + 1923b62 commit 58f0201

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Doc/library/time.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,13 @@ 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
346-
floating point number to indicate a more precise sleep time. The actual
347-
suspension time may be less than that requested because any caught signal will
348-
terminate the :func:`sleep` following execution of that signal's catching
349-
routine. Also, the suspension time may be longer than requested by an arbitrary
350-
amount because of the scheduling of other activity in the system.
345+
Suspend execution of the calling thread for the given number of seconds.
346+
The argument may be a floating point number to indicate a more precise sleep
347+
time. The actual suspension time may be less than that requested because any
348+
caught signal will terminate the :func:`sleep` following execution of that
349+
signal's catching routine. Also, the suspension time may be longer than
350+
requested by an arbitrary amount because of the scheduling of other activity
351+
in the system.
351352

352353

353354
.. function:: strftime(format[, t])

0 commit comments

Comments
 (0)