Skip to content

Commit

Permalink
Doc: Add link threading.settrace to sys.settrace (GH-13345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hoelzl authored and matrixise committed May 17, 2019
1 parent ac8eb8f commit 245f528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/sys.rst
Expand Up @@ -1204,8 +1204,8 @@ always available.

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

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

0 comments on commit 245f528

Please sign in to comment.