]> granicus.if.org Git - python/commitdiff
bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (#5361)
authorXiang Zhang <angwerzx@126.com>
Sun, 28 Jan 2018 07:38:21 +0000 (15:38 +0800)
committerGitHub <noreply@github.com>
Sun, 28 Jan 2018 07:38:21 +0000 (15:38 +0800)
Doc/c-api/init.rst

index 86faf47f53bc54f0b44f8315de26cde91112254d..9887d28b09d905a78ce3967ac0e36947eb864c8f 100644 (file)
@@ -1283,12 +1283,12 @@ Python-level trace functions in previous versions.
    +------------------------------+--------------------------------------+
    | Value of *what*              | Meaning of *arg*                     |
    +==============================+======================================+
-   | :const:`PyTrace_CALL`        | Always *NULL*.                       |
+   | :const:`PyTrace_CALL`        | Always :c:data:`Py_None`.            |
    +------------------------------+--------------------------------------+
    | :const:`PyTrace_EXCEPTION`   | Exception information as returned by |
    |                              | :func:`sys.exc_info`.                |
    +------------------------------+--------------------------------------+
-   | :const:`PyTrace_LINE`        | Always *NULL*.                       |
+   | :const:`PyTrace_LINE`        | Always :c:data:`Py_None`.            |
    +------------------------------+--------------------------------------+
    | :const:`PyTrace_RETURN`      | Value being returned to the caller,  |
    |                              | or *NULL* if caused by an exception. |