From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:34:20 +0000 (+0200) Subject: [3.11] GH-104232: Fix statement about trace return values (GH-111045) X-Git-Tag: v3.11.7~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=faa7c207bfe6b04c88f8440d95c36739ae69d518;p=thirdparty%2FPython%2Fcpython.git [3.11] GH-104232: Fix statement about trace return values (GH-111045) (cherry picked from commit d9246c7b734b8958da03494045208681d95f5b74) --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 34cb4cf038fe..65c20748f862 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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.