summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-18 23:22:03 (GMT)
committerGitHub <noreply@github.com>2023-10-18 23:22:03 (GMT)
commit9ef8caf293b6a54f73fb66e3eca653783b3e0f28 (patch)
treeb2a484c7564d258801abd1b7592e014fe346eb0a /Doc/library/sys.rst
parent228b12493286a7cb959438cd5b1a018e0afb17a8 (diff)
downloadcpython-9ef8caf293b6a54f73fb66e3eca653783b3e0f28.zip
cpython-9ef8caf293b6a54f73fb66e3eca653783b3e0f28.tar.gz
cpython-9ef8caf293b6a54f73fb66e3eca653783b3e0f28.tar.bz2
[3.12] GH-104232: Fix statement about trace return values (GH-111047)
(cherry picked from commit d9246c7b734b8958da03494045208681d95f5b74)
Diffstat (limited to 'Doc/library/sys.rst')
-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 6fb4c0f..3782d1e 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1552,9 +1552,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.