From deec1f3dced6ff763ccb38428765c08bd559d607 Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Sun, 1 Sep 2019 18:32:47 -0300 Subject: [PATCH 1/2] Correct minor gramatical mistake --- Doc/library/sys.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 6119bee10ab397..5cc81d8e307088 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1253,7 +1253,7 @@ always available. The trace function is invoked (with *event* set to ``'call'``) whenever a new local scope is entered; it should return a reference to a local trace - function to be used that scope, or ``None`` if the scope shouldn't be traced. + 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 From 523eec788bed354777845a2cad962882f908e4df Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Mon, 2 Sep 2019 07:23:55 -0300 Subject: [PATCH 2/2] Update Doc/library/sys.rst Co-Authored-By: Kyle Stanley --- Doc/library/sys.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 5cc81d8e307088..01df026a6e8a7b 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1253,7 +1253,8 @@ always available. The trace function is invoked (with *event* set to ``'call'``) whenever a new local scope is entered; it should return a reference to a local trace - function to be used for the new scope, or ``None`` if the scope shouldn't be traced. + 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