summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/init.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-28 08:41:05 (GMT)
committerXiang Zhang <angwerzx@126.com>2018-01-28 08:41:05 (GMT)
commit854f0424de389f023b375dfd0b50c34dea29e8f8 (patch)
tree39798f2e044eab135b47d5c32fca5454c444dbeb /Doc/c-api/init.rst
parent0135dfdc1fb3bbbc5080f86c86b20a8961dbc11a (diff)
downloadcpython-854f0424de389f023b375dfd0b50c34dea29e8f8.zip
cpython-854f0424de389f023b375dfd0b50c34dea29e8f8.tar.gz
cpython-854f0424de389f023b375dfd0b50c34dea29e8f8.tar.bz2
bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (GH-5361) (GH-5377)
(cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
Diffstat (limited to 'Doc/c-api/init.rst')
-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 a2c55fe..bc92c3e 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -1063,12 +1063,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. |