From a4e8a42306f4ed5110bcae93e47a64ce8da9acc1 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Sun, 12 Apr 2026 11:14:47 +0800 Subject: [PATCH] Backport to 3.13 --- Doc/library/sys.monitoring.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index f8b0350ad3cbc6..ee031bfc4aa492 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