]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] GH-104232: Fix statement about trace return values (GH-111045)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Oct 2023 20:34:20 +0000 (22:34 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 20:34:20 +0000 (20:34 +0000)
(cherry picked from commit d9246c7b734b8958da03494045208681d95f5b74)

Doc/library/sys.rst

index 34cb4cf038fe7eb152480ba51faa6b8cbf9f7581..65c20748f862b538396a72fd60deb93fdddbd3dd 100644 (file)
@@ -1520,9 +1520,8 @@ always available.
    function to be used for the new scope, or ``None`` if the scope shouldn't be
    traced.
 
-   The local trace function should return a reference to itself (or to another
-   function for further tracing in that scope), or ``None`` to turn off tracing
-   in that scope.
+   The local trace function should return a reference to itself, or to another
+   function which would then be used as the local trace function for the scope.
 
    If there is any error occurred in the trace function, it will be unset, just
    like ``settrace(None)`` is called.