[Python-checkins] cpython (3.5): Issue #29068: Fixed a typo in PyErr_Fetch example.
serhiy.storchaka
python-checkins at python.org
Sun Dec 25 09:24:32 EST 2016
https://hg.python.org/cpython/rev/34e7b9879e60
changeset: 105821:34e7b9879e60
branch: 3.5
parent: 105818:75f9cca86fa1
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Dec 25 16:22:23 2016 +0200
summary:
Issue #29068: Fixed a typo in PyErr_Fetch example.
Patch by Chi Hsuan Yen.
files:
Doc/c-api/exceptions.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -381,7 +381,7 @@
by code that needs to save and restore the error indicator temporarily, e.g.::
{
- PyObject **type, **value, **traceback;
+ PyObject *type, *value, *traceback;
PyErr_Fetch(&type, &value, &traceback);
/* ... code that might produce other errors ... */
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list