Skip to content

Commit 20393c9

Browse files
authored
Clarify sys.monitoring cannot be directly imported (Fix #148320)
1 parent dd88e77 commit 20393c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/sys.monitoring.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
-----------------
1010

11-
.. note::
11+
.. warning::
1212

1313
:mod:`!sys.monitoring` is a namespace within the :mod:`sys` module,
14-
not an independent module, so there is no need to
15-
``import sys.monitoring``, simply ``import sys`` and then use
14+
not an independent module, so
15+
``import sys.monitoring`` will throw a ``ModuleNotFoundError``. Instead, simply ``import sys`` and then use
1616
``sys.monitoring``.
1717

1818

0 commit comments

Comments
 (0)