summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-09-13 15:40:25 (GMT)
committerGitHub <noreply@github.com>2021-09-13 15:40:25 (GMT)
commit85dc53a463967659075744ad911d08a32aa70dd5 (patch)
treef9aa5467fc2644e7306aa8bb4a69a887ba3bdddd /Doc/library
parent85a4748118c3793be7047ecbcbfc79dd07cb2a75 (diff)
downloadcpython-85dc53a463967659075744ad911d08a32aa70dd5.zip
cpython-85dc53a463967659075744ad911d08a32aa70dd5.tar.gz
cpython-85dc53a463967659075744ad911d08a32aa70dd5.tar.bz2
bpo-21302: Update time.sleep() doc for clock_nanosleep() (GH-28311)
Clean-up also What's New in Python 3.11 doc: move entries to the correct sections.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/time.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index cfd67e8..34cb28f 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -362,6 +362,11 @@ Functions
by a signal, except if the signal handler raises an exception (see
:pep:`475` for the rationale).
+ .. versionchanged:: 3.11
+ In Unix operating systems, the ``clock_nanosleep()`` function is now
+ used, if available: it allows to sleep for an interval specified with
+ nanosecond precision.
+
.. index::
single: % (percent); datetime format