From dfa3de57430a192a4310b05735889641540a79f4 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Sat, 11 Apr 2026 07:54:21 +0800 Subject: [PATCH 1/4] Clarify note under sys.monitoring --- Doc/library/sys.monitoring.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index 4a460479e4afd7..db708e765ff6e8 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -11,9 +11,9 @@ .. note:: :mod:`!sys.monitoring` is a namespace within the :mod:`sys` module, - not an independent module, so there is no need to - ``import sys.monitoring``, simply ``import sys`` and then use - ``sys.monitoring``. + not an independent module, and ``import sys.monitoring`` will fail + with a :exception:`ModuleNotFoundError`. Instead, simply + ``import sys`` and then use ``sys.monitoring``. This namespace provides access to the functions and constants necessary to From b16c86e81b905784558658b10bc1e9f85ed94a9f Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Sat, 11 Apr 2026 09:17:29 +0800 Subject: [PATCH 2/4] Fix reference to ModuleNotFoundError in documentation --- Doc/library/sys.monitoring.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index db708e765ff6e8..e55d38c8799f6c 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -12,7 +12,7 @@ :mod:`!sys.monitoring` is a namespace within the :mod:`sys` module, not an independent module, and ``import sys.monitoring`` will fail - with a :exception:`ModuleNotFoundError`. Instead, simply + with a :py:exception:`ModuleNotFoundError`. Instead, simply ``import sys`` and then use ``sys.monitoring``. From 17ed42e949fc2870359fcfed1c9e778da27bc4bb Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Sat, 11 Apr 2026 09:24:21 +0800 Subject: [PATCH 3/4] :py:exc:, not :py:exception: --- Doc/library/sys.monitoring.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index e55d38c8799f6c..eaf0a0c6ccb174 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -12,8 +12,8 @@ :mod:`!sys.monitoring` is a namespace within the :mod:`sys` module, not an independent module, and ``import sys.monitoring`` will fail - with a :py:exception:`ModuleNotFoundError`. Instead, simply - ``import sys`` and then use ``sys.monitoring``. + with a :py:exc:`ModuleNotFoundError`. Instead, simply ``import sys`` + and then use ``sys.monitoring``. This namespace provides access to the functions and constants necessary to From c5fa2597852653cb30e7e34d08b8cf6816b7a18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sat, 11 Apr 2026 12:08:30 +0200 Subject: [PATCH 4/4] improve wording --- Doc/library/sys.monitoring.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index eaf0a0c6ccb174..16e6b1d6dc786b 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -11,8 +11,8 @@ .. note:: :mod:`!sys.monitoring` is a namespace within the :mod:`sys` module, - not an independent module, and ``import sys.monitoring`` will fail - with a :py:exc:`ModuleNotFoundError`. Instead, simply ``import sys`` + not an independent module, and ``import sys.monitoring`` would fail + with a :exc:`ModuleNotFoundError`. Instead, simply ``import sys`` and then use ``sys.monitoring``.