https://github.com/python/cpython/commit/620fb74384a1ddda9156c07d7e5e22453db48fda commit: 620fb74384a1ddda9156c07d7e5e22453db48fda branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: picnixz <[email protected]> date: 2026-04-11T15:30:24Z summary:
[3.14] gh-148320: document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148365) (#148385) gh-148320: document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148365) (cherry picked from commit d7c9f1877cbd733d6c0fda395a9fcf78171f51b0) Co-authored-by: Jonathan Dung <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> files: M Doc/library/sys.monitoring.rst diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index 4a460479e4afd7..16e6b1d6dc786b 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -11,9 +11,9 @@ .. 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``. + 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]
