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

Skip to content

Commit d9246c7

Browse files
GH-104232: Fix statement about trace return values (GH-110516)
1 parent e6eb8ca commit d9246c7

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
@@ -1554,9 +1554,8 @@ always available.
15541554
function to be used for the new scope, or ``None`` if the scope shouldn't be
15551555
traced.
15561556

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

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

0 commit comments

Comments
 (0)