Skip to content

Commit 766ff10

Browse files
authored
Update sys.rst
1 parent b7d164d commit 766ff10

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/library/sys.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,11 @@ always available.
14181418

14191419
``'c_exception'``
14201420
A C function has raised an exception. *arg* is the C function object.
1421+
1422+
.. note::
1423+
The same tracing mechanism is used for :func:`setprofile` than :func:`settrace`.
1424+
To trace calls with :func:`setprofile` inside a tracing function (e.g. in a
1425+
debugger breakpoint) see :func:`call_tracing`.
14211426

14221427
.. function:: setrecursionlimit(limit)
14231428

@@ -1478,6 +1483,10 @@ always available.
14781483

14791484
If there is any error occurred in the trace function, it will be unset, just
14801485
like ``settrace(None)`` is called.
1486+
1487+
.. note::
1488+
Tracing is disabled while calling the trace function (e.g. a function set by
1489+
:func:`settrace` or :func:`setprofile`). For recursive tracing see :func:`call_tracing`.
14811490

14821491
The events have the following meaning:
14831492

0 commit comments

Comments
 (0)