Skip to content

Commit

Permalink
GH-104232: Fix statement about trace return values (GH-110516)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Oct 18, 2023
1 parent e6eb8ca commit d9246c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d9246c7

Please sign in to comment.