From 5d9edc6f024a1b01182eb9962bc77addeb23ec77 Mon Sep 17 00:00:00 2001 From: Dimma Don't <93484965+DimmaDont@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:00:41 -0500 Subject: [PATCH 1/5] docs: add links to module source --- Doc/library/msvcrt.rst | 2 ++ Doc/library/winreg.rst | 2 ++ Doc/library/winsound.rst | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst index 327cc3602b1a77..1539e6940a69b6 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 b3a824fb69a49f..917bc5f31be067 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 diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index f7ca9dc57bbe28..51202b677243c6 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 From bcf7e05e31c551542c7e7e2ed94343c5ef645d8e Mon Sep 17 00:00:00 2001 From: Dimma Don't <93484965+DimmaDont@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:14:57 -0500 Subject: [PATCH 2/5] Update winsound.rst --- Doc/library/winsound.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index 51202b677243c6..1a67b452b8d6f2 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -13,7 +13,14 @@ -------------- The :mod:`winsound` module provides access to the basic sound-playing machinery -provided by Windows platforms. It includes functions and several constants. +provided by Windows platforms. + +.. _functions: + +Functions +------------------ + +This module offers the following functions: .. function:: Beep(frequency, duration) @@ -46,6 +53,11 @@ provided by Windows platforms. It includes functions and several constants. error, :exc:`RuntimeError` is raised. +.. _constants: + +Constants +------------------ + .. data:: SND_FILENAME The *sound* parameter is the name of a WAV file. Do not use with From db41c82c06376cc7f3543a2f114ee2898589ae38 Mon Sep 17 00:00:00 2001 From: Dimma Don't <93484965+DimmaDont@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:14:57 -0500 Subject: [PATCH 3/5] Update winsound.rst --- Doc/library/winsound.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index 51202b677243c6..4c4273c29bdf4b 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -13,9 +13,12 @@ -------------- The :mod:`winsound` module provides access to the basic sound-playing machinery -provided by Windows platforms. It includes functions and several constants. +provided by Windows platforms. +Functions +------------------ + .. function:: Beep(frequency, duration) Beep the PC's speaker. The *frequency* parameter specifies frequency, in hertz, @@ -46,6 +49,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 From 834789e8da6aacdc6643a661ed57a2810305ae55 Mon Sep 17 00:00:00 2001 From: Dimma Don't <93484965+DimmaDont@users.noreply.github.com> Date: Wed, 19 Feb 2025 22:18:22 -0500 Subject: [PATCH 4/5] fix subsection headings --- Doc/library/winreg.rst | 4 ++-- Doc/library/winsound.rst | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index 917bc5f31be067..6c0beaf8beda45 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -25,7 +25,7 @@ to explicitly close them. .. _functions: Functions ------------------- +--------- This module offers the following functions: @@ -536,7 +536,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 4c4273c29bdf4b..75cdf89ff43c94 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -13,11 +13,11 @@ -------------- The :mod:`winsound` module provides access to the basic sound-playing machinery -provided by Windows platforms. +provided by Windows platforms. It includes functions and several constants. Functions ------------------- +--------- .. function:: Beep(frequency, duration) @@ -50,7 +50,7 @@ Functions Constants ------------------- +--------- .. data:: SND_FILENAME From 66e1fa74849c6fab463ef30845b9c2a0fc763932 Mon Sep 17 00:00:00 2001 From: Dimma Don't <93484965+DimmaDont@users.noreply.github.com> Date: Wed, 19 Feb 2025 22:18:22 -0500 Subject: [PATCH 5/5] fix subsection headings --- Doc/library/winreg.rst | 4 ++-- Doc/library/winsound.rst | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index 917bc5f31be067..6c0beaf8beda45 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -25,7 +25,7 @@ to explicitly close them. .. _functions: Functions ------------------- +--------- This module offers the following functions: @@ -536,7 +536,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 4c4273c29bdf4b..fe5021978d6450 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -13,11 +13,11 @@ -------------- The :mod:`winsound` module provides access to the basic sound-playing machinery -provided by Windows platforms. +provided by Windows platforms. It includes functions and several constants. Functions ------------------- +--------- .. function:: Beep(frequency, duration) @@ -50,7 +50,7 @@ Functions Constants ------------------- +--------- .. data:: SND_FILENAME