Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Clarify sys.monitoring cannot be directly imported (Fix #148320)
  • Loading branch information
sharktide authored Apr 10, 2026
commit 20393c99b260f30a66e87c0f6c6efff526825e10
6 changes: 3 additions & 3 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.


Expand Down
Loading