summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-09-25 12:36:26 (GMT)
committerGitHub <noreply@github.com>2021-09-25 12:36:26 (GMT)
commit7834ff26cbcd4d8394d64d80d9f51a364d38b1c6 (patch)
treee7c785c78db85d08be01a0f081589ea6d1a48614 /Misc/NEWS.d/next
parent71f8ff45c62bd6b792919ac7c3804a8628ae12cb (diff)
downloadcpython-7834ff26cbcd4d8394d64d80d9f51a364d38b1c6.zip
cpython-7834ff26cbcd4d8394d64d80d9f51a364d38b1c6.tar.gz
cpython-7834ff26cbcd4d8394d64d80d9f51a364d38b1c6.tar.bz2
bpo-21302: Add nanosleep() implementation for time.sleep() in Unix (GH-28545)
Co-authored-by: Livius <egyszeregy@freemail.hu>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-22-23-56-15.bpo-21302.vvQ3Su.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-22-23-56-15.bpo-21302.vvQ3Su.rst b/Misc/NEWS.d/next/Library/2021-09-22-23-56-15.bpo-21302.vvQ3Su.rst
new file mode 100644
index 0000000..52ee8d7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-22-23-56-15.bpo-21302.vvQ3Su.rst
@@ -0,0 +1 @@
+In Unix operating systems, :func:`time.sleep` now uses the ``nanosleep()`` function, if ``clock_nanosleep()`` is not available but ``nanosleep()`` is available. ``nanosleep()`` allows to sleep with nanosecond precision. \ No newline at end of file