From: Jonathan Dung Date: Sun, 24 May 2026 07:24:29 +0000 (+0800) Subject: [3.13] Document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148320... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=29fcf3c5f96f89da32b688137715b9a5d88cd9a2;p=thirdparty%2FPython%2Fcpython.git [3.13] Document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148320) (#148422) --- diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index f8b0350ad3cb..ee031bfc4aa4 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -10,10 +10,10 @@ .. 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``. + :mod:`!sys.monitoring` is a namespace within the :mod:`sys` module, + not an independent module, and ``import sys.monitoring`` would fail + with a :exc:`ModuleNotFoundError`. Instead, simply ``import sys`` + and then use ``sys.monitoring``. This namespace provides access to the functions and constants necessary to