Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faa7c20

Browse files
[3.11] GH-104232: Fix statement about trace return values (GH-111045)
(cherry picked from commit d9246c7)
1 parent 8e3d90c commit faa7c20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/sys.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,9 +1520,8 @@ always available.
15201520
function to be used for the new scope, or ``None`` if the scope shouldn't be
15211521
traced.
15221522

1523-
The local trace function should return a reference to itself (or to another
1524-
function for further tracing in that scope), or ``None`` to turn off tracing
1525-
in that scope.
1523+
The local trace function should return a reference to itself, or to another
1524+
function which would then be used as the local trace function for the scope.
15261525

15271526
If there is any error occurred in the trace function, it will be unset, just
15281527
like ``settrace(None)`` is called.

0 commit comments

Comments
 (0)