mirror of https://github.com/python/cpython
Issue #29068: Fixed a typo in PyErr_Fetch example.
Patch by Chi Hsuan Yen.
This commit is contained in:
parent
b079c07f7d
commit
4398c12b47
|
@ -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 ... */
|
||||
|
|
Loading…
Reference in New Issue