summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2018-01-28 07:38:21 (GMT)
committerGitHub <noreply@github.com>2018-01-28 07:38:21 (GMT)
commit9ed0aee27c249dada410a22fff4325a4a61df36d (patch)
treea8909888532a66ce9d9bb33d2e69afb0fdbe8019 /Doc
parenta278ad2faa76ae61569a58f36e06ba8745f4a9b7 (diff)
downloadcpython-9ed0aee27c249dada410a22fff4325a4a61df36d.zip
cpython-9ed0aee27c249dada410a22fff4325a4a61df36d.tar.gz
cpython-9ed0aee27c249dada410a22fff4325a4a61df36d.tar.bz2
bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (#5361)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/init.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 86faf47..9887d28 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -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. |