]> granicus.if.org Git - python/commitdiff
Fix PyTrace_RETURN documentation (GH-5384) (GH-5386)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Jan 2018 15:33:23 +0000 (07:33 -0800)
committerXiang Zhang <angwerzx@126.com>
Sun, 28 Jan 2018 15:33:23 +0000 (23:33 +0800)
It will be triggered when propagating an exception.
(cherry picked from commit 79db11ce99332d62917be9d03b31494b1ff2f96a)

Doc/c-api/init.rst

index bc92c3e16b89e471ba77fc61c8b4e7c0ad231f49..c8d429de51bb3a1d9a29d246a756e6587b9a9804 100644 (file)
@@ -1110,7 +1110,7 @@ Python-level trace functions in previous versions.
 .. c:var:: int PyTrace_RETURN
 
    The value for the *what* parameter to :c:type:`Py_tracefunc` functions when a
-   call is returning without propagating an exception.
+   call is about to return.
 
 
 .. c:var:: int PyTrace_C_CALL