mirror of
https://github.com/python/cpython.git
synced 2026-05-08 19:41:06 +00:00
[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 d7c9f1877c)
Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
f36da66c71
commit
620fb74384
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue