]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-104232: Fix statement about trace return values (GH-110516)
authorTian Gao <gaogaotiantian@hotmail.com>
Wed, 18 Oct 2023 20:24:00 +0000 (13:24 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 20:24:00 +0000 (13:24 -0700)
Doc/library/sys.rst

index f9f556306f5827517c5320ab28af7f8ec45c02e0..8eeeefa0133d1270d0019bfa8d9f0dd13e940d9e 100644 (file)
@@ -1554,9 +1554,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.