[Python-checkins] bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (GH-5361) (GH-5377)
Xiang Zhang
webhook-mailer at python.org
Sun Jan 28 03:41:10 EST 2018
https://github.com/python/cpython/commit/854f0424de389f023b375dfd0b50c34dea29e8f8
commit: 854f0424de389f023b375dfd0b50c34dea29e8f8
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Xiang Zhang <angwerzx at 126.com>
date: 2018-01-28T16:41:05+08:00
summary:
bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (GH-5361) (GH-5377)
(cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
files:
M Doc/c-api/init.rst
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index a2c55fea9f7b..bc92c3e16b89 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. |
More information about the Python-checkins
mailing list