Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix sphinx errors
  • Loading branch information
markshannon committed Aug 5, 2023
commit e373cbe678ee16518b9be02859fb1c320508c42d
1 change: 1 addition & 0 deletions Doc/library/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ overview:
.. toctree::

sys.rst
sys.monitoring.rst
sysconfig.rst
builtins.rst
__main__.rst
Expand Down
7 changes: 4 additions & 3 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
====================================================

.. module:: sys.monitoring

:synopsis: Access and control event monitoring

.. note::
Expand All @@ -16,7 +17,7 @@ This namespace provides access to the functions and constants necessary to
activate and control event monitoring.

As programs execute, events occur that might be of interest to tools that
monitor execution. The `mod:`sys.monitoring` namespace provides means to
monitor execution. The :mod:`sys.monitoring` namespace provides means to
Comment thread
markshannon marked this conversation as resolved.
Outdated
receive callbacks when events of interest occur.

The monitoring API consists of three components:
Expand Down Expand Up @@ -86,7 +87,7 @@ The following events are supported:

More events may be added in the future.

These events are attributes of the `:mod:sys.monitoring.events` namespace.
These events are attributes of the :mod:`sys.monitoring.events` namespace.
Comment thread
markshannon marked this conversation as resolved.
Outdated
Each event is represented as a power-of-2 integer constant.
To define a set of events, simply bitwise or the individual events together.
For example, to specify both ``PY_RETURN`` and ``PY_START`` events, use the
Expand Down Expand Up @@ -196,7 +197,7 @@ Disabling events
''''''''''''''''

Local events can be disabled for a specific code location by returning
`sys.monitoring.DISABLE` from a callback function. This does not change
``sys.monitoring.DISABLE`` from a callback function. This does not change
which events are set, or any other code locations for the same event.

Disabling events for specific locations is very important for high
Expand Down
1 change: 1 addition & 0 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ always available.


.. data:: monitoring
:noindex:

Namespace containing functions and constants for register callbacks
and controlling monitoring events.
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ A Python API is anticipated for 3.13. (See :pep:`554`.)

(Contributed by Eric Snow in :gh:`104210`, etc.)

.. _whatsnew312-pep684:
.. _whatsnew312-pep669:

PEP 669: Low impact monitoring for CPython
------------------------------------------
Expand Down