From 5b2d49b7da25bdd7bde603c71ac8685993008b96 Mon Sep 17 00:00:00 2001 From: Dimma Don't Date: Thu, 22 Jan 2026 16:30:13 -0500 Subject: [PATCH] Add source links to documentation for Windows-specific modules (GH-130244) --- Doc/library/msvcrt.rst | 2 ++ Doc/library/winreg.rst | 6 ++++-- Doc/library/winsound.rst | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst index a2c5e375d2cc..80f3ae4ee3f5 100644 --- a/Doc/library/msvcrt.rst +++ b/Doc/library/msvcrt.rst @@ -7,6 +7,8 @@ .. sectionauthor:: Fred L. Drake, Jr. +**Source code:** :source:`PC/msvcrtmodule.c` + -------------- These functions provide access to some useful capabilities on Windows platforms. diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index 89def6e2afe0..d167c41ab72c 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -7,6 +7,8 @@ .. sectionauthor:: Mark Hammond +**Source code:** :source:`PC/winreg.c` + -------------- These functions expose the Windows registry API to Python. Instead of using an @@ -25,7 +27,7 @@ to explicitly close them. .. _functions: Functions ------------------- +--------- This module offers the following functions: @@ -554,7 +556,7 @@ This module offers the following functions: .. _constants: Constants ------------------- +--------- The following constants are defined for use in many :mod:`winreg` functions. diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index 93c0c0259820..755b94fc0fbe 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -8,6 +8,8 @@ .. moduleauthor:: Toby Dickenson .. sectionauthor:: Fred L. Drake, Jr. +**Source code:** :source:`PC/winsound.c` + -------------- The :mod:`winsound` module provides access to the basic sound-playing machinery @@ -16,6 +18,9 @@ provided by Windows platforms. It includes functions and several constants. .. availability:: Windows. +Functions +--------- + .. function:: Beep(frequency, duration) Beep the PC's speaker. The *frequency* parameter specifies frequency, in hertz, @@ -46,6 +51,9 @@ provided by Windows platforms. It includes functions and several constants. error, :exc:`RuntimeError` is raised. +Constants +--------- + .. data:: SND_FILENAME The *sound* parameter is the name of a WAV file. Do not use with -- 2.47.3