From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 10 Nov 2025 16:40:46 +0000 (+0100) Subject: [3.14] gh-139707: Specify `winreg`, `msvcrt` and `winsound` module availability in... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63a3737ce7584020a20e91cfb1764ef3555ba394;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-139707: Specify `winreg`, `msvcrt` and `winsound` module availability in docs (GH-140429) (GH-141351) (cherry picked from commit 13fa313bebed71d8bc64f1cfdaf4b2f1ddd3ce5f) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> --- diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst index 327cc3602b1a..a2c5e375d2cc 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 52c6c1a82821..6d1e8ecfc174 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -14,6 +14,8 @@ integer as the registry handle, a :ref:`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 925984c3cdb0..93c0c0259820 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)