Backport to 3.13

This commit is contained in:
Jonathan Dung 2026-04-12 11:14:47 +08:00 committed by GitHub
parent 4830d291e7
commit a4e8a42306
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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