https://github.com/python/cpython/commit/13fa313bebed71d8bc64f1cfdaf4b2f1ddd3ce5f
commit: 13fa313bebed71d8bc64f1cfdaf4b2f1ddd3ce5f
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2025-11-10T14:37:34+01:00
summary:
gh-139707: Specify `winreg`, `msvcrt` and `winsound` module availability in
docs (GH-140429)
files:
M Doc/library/msvcrt.rst
M Doc/library/winreg.rst
M Doc/library/winsound.rst
diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst
index 327cc3602b1a77..a2c5e375d2cc4f 100644
--- a/Doc/library/msvcrt.rst
+++ b/Doc/library/msvcrt.rst
@@ -22,6 +22,8 @@ api. The normal API deals only with ASCII characters and is
of limited use
for internationalized applications. The wide char API should be used where
ever possible.
+.. availability:: Windows.
+
.. versionchanged:: 3.3
Operations in this module now raise :exc:`OSError` where :exc:`IOError`
was raised.
diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst
index df8fb83a018997..b150c53735d634 100644
--- a/Doc/library/winreg.rst
+++ b/Doc/library/winreg.rst
@@ -14,6 +14,8 @@ integer as the registry handle, a :ref:`handle object
<handle-object>` is used
to ensure that the handles are closed correctly, even if the programmer
neglects
to explicitly close them.
+.. availability:: Windows.
+
.. _exception-changed:
.. versionchanged:: 3.3
diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst
index 925984c3cdb0cb..93c0c025982076 100644
--- a/Doc/library/winsound.rst
+++ b/Doc/library/winsound.rst
@@ -13,6 +13,8 @@
The :mod:`winsound` module provides access to the basic sound-playing machinery
provided by Windows platforms. It includes functions and several constants.
+.. availability:: Windows.
+
.. function:: Beep(frequency, duration)
_______________________________________________
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]