Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 245f528

Browse files
Stefan Hoelzlmatrixise
authored andcommitted
Doc: Add link threading.settrace to sys.settrace (GH-13345)
1 parent ac8eb8f commit 245f528

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
@@ -1204,8 +1204,8 @@ always available.
12041204

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

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

0 commit comments

Comments
 (0)