summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2023-10-18 20:24:00 (GMT)
committerGitHub <noreply@github.com>2023-10-18 20:24:00 (GMT)
commitd9246c7b734b8958da03494045208681d95f5b74 (patch)
tree9aba6cd0d2b1129c0b249b7e82468bc121136ceb /Doc/library
parente6eb8cafca441046b5f9ded27c68d9a84c42022a (diff)
downloadcpython-d9246c7b734b8958da03494045208681d95f5b74.zip
cpython-d9246c7b734b8958da03494045208681d95f5b74.tar.gz
cpython-d9246c7b734b8958da03494045208681d95f5b74.tar.bz2
GH-104232: Fix statement about trace return values (GH-110516)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/sys.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index f9f5563..8eeeefa 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -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.