]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Add link threading.settrace to sys.settrace (GH-13345)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 May 2019 09:02:51 +0000 (02:02 -0700)
committerGitHub <noreply@github.com>
Fri, 17 May 2019 09:02:51 +0000 (02:02 -0700)
(cherry picked from commit 245f528a92d7748dbd7acf9cba860153c143bbfe)

Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Doc/library/sys.rst

index c2c653e00bebbca81fd33a83335680089dc0723f..9a8c2ca0c5d05e9a6df7482c6091ffcafc83295c 100644 (file)
@@ -1171,8 +1171,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'``,