https://github.com/python/cpython/commit/29fcf3c5f96f89da32b688137715b9a5d88cd9a2 commit: 29fcf3c5f96f89da32b688137715b9a5d88cd9a2 branch: 3.13 author: Jonathan Dung <[email protected]> committer: kumaraditya303 <[email protected]> date: 2026-05-24T12:54:29+05:30 summary:
[3.13] Document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148320) (#148422) files: M Doc/library/sys.monitoring.rst 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
