]> granicus.if.org Git - python/commitdiff
Issue #29068: Fixed a typo in PyErr_Fetch example.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 25 Dec 2016 14:22:23 +0000 (16:22 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 25 Dec 2016 14:22:23 +0000 (16:22 +0200)
Patch by Chi Hsuan Yen.

Doc/c-api/exceptions.rst

index 19cbb3bcb870284117ee04ac155c779ee566502d..c389888b2bb01c9442d4a4bad410698a7e2fe9c9 100644 (file)
@@ -381,7 +381,7 @@ Querying the error indicator
       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 ... */