From 20393c99b260f30a66e87c0f6c6efff526825e10 Mon Sep 17 00:00:00 2001 From: Rihaan Meher Date: Fri, 10 Apr 2026 15:14:44 -0500 Subject: [PATCH] Clarify sys.monitoring cannot be directly imported (Fix #148320) --- 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..96dc14be18bbb8 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -8,11 +8,11 @@ ----------------- -.. note:: +.. warning:: :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 + not an independent module, so + ``import sys.monitoring`` will throw a ``ModuleNotFoundError``. Instead, simply ``import sys`` and then use ``sys.monitoring``.