https://github.com/python/cpython/commit/6545a4e8f83c27996fc771ed7c8c96ae0ce8d2e0
commit: 6545a4e8f83c27996fc771ed7c8c96ae0ce8d2e0
branch: main
author: 莯凛 <[email protected]>
committer: vstinner <[email protected]>
date: 2025-11-08T15:56:48+01:00
summary:
gh-141246: Link to correct Windows docs in `time.sleep()` doc (#141248)
files:
M Doc/library/time.rst
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index 69e6433e898703..a931134331f0a5 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -407,9 +407,9 @@ Functions
On Windows, if *secs* is zero, the thread relinquishes the remainder of its
time slice to any other thread that is ready to run. If there are no other
threads ready to run, the function returns immediately, and the thread
- continues execution. On Windows 8.1 and newer the implementation uses
+ continues execution. On Windows 10 and newer the implementation uses
a `high-resolution timer
-
<https://learn.microsoft.com/windows-hardware/drivers/kernel/high-resolution-timers>`_
+
<https://learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-createwaitabletimerexw>`_
which provides resolution of 100 nanoseconds. If *secs* is zero,
``Sleep(0)`` is used.
.. rubric:: Unix implementation
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]