Skip to content

Commit 922fb28

Browse files
authored
Update sys.rst
Fixes python#102249
1 parent 72186aa commit 922fb28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/library/sys.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ always available.
173173

174174
Call ``func(*args)``, while tracing is enabled. The tracing state is saved,
175175
and restored afterwards. This is intended to be called from a debugger from
176-
a checkpoint, to recursively debug some other code.
176+
a checkpoint, to recursively debug or profile some other code.
177+
178+
Tracing is suspended while calling a tracing function set by
179+
:func:`settrace` or :func:`setprofile` to avoid infinite recursion.
180+
:func:`call_tracing` enables explicit recursion of tracing function.
177181

178182

179183
.. data:: copyright

0 commit comments

Comments
 (0)