Skip to content

Commit 4be0720

Browse files
miss-islingtonStefan Hoelzl
andauthored
Doc: Add link threading.settrace to sys.settrace (GH-13345)
(cherry picked from commit 245f528) Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
1 parent f02d1a4 commit 4be0720

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/sys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,8 @@ always available.
11711171

11721172
Set the system's trace function, which allows you to implement a Python
11731173
source code debugger in Python. The function is thread-specific; for a
1174-
debugger to support multiple threads, it must be registered using
1175-
:func:`settrace` for each thread being debugged.
1174+
debugger to support multiple threads, it must register a trace function using
1175+
:func:`settrace` for each thread being debugged or use :func:`threading.settrace`.
11761176

11771177
Trace functions should have three arguments: *frame*, *event*, and
11781178
*arg*. *frame* is the current stack frame. *event* is a string: ``'call'``,

0 commit comments

Comments
 (0)