]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148320...
authorJonathan Dung <jonathandung@yahoo.com>
Sun, 24 May 2026 07:24:29 +0000 (15:24 +0800)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 07:24:29 +0000 (12:54 +0530)
Doc/library/sys.monitoring.rst

index f8b0350ad3cbc62ec6ea30231b682df6d6bf3ccf..ee031bfc4aa492ad985a01f5292ce82d976a97fd 100644 (file)
 
 .. 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