mirror of https://github.com/python/cpython.git
[3.11] GH-104232: Fix statement about trace return values (GH-111045)
(cherry picked from commit d9246c7b73
)
This commit is contained in:
parent
8e3d90c332
commit
faa7c207bf
|
@ -1520,9 +1520,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.
|
||||
|
|
Loading…
Reference in New Issue