From ec745b1e06573919c81c72488403be8a2cf932b8 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 7 Oct 2023 22:39:45 -0700 Subject: [PATCH] Fix sys.settrace docs to reflect the reality --- Doc/library/sys.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index f9f556306f5827..8eeeefa0133d12 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.