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

Doc/library/sys.rst

index 6fb4c0f1c53893fc81ceee86d9d8d044a63540b6..3782d1e6c6f20a54900303b090397802bdf678cf 100644 (file)
@@ -1552,9 +1552,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.