mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Merge from 3.6.
This commit is contained in:
commit
fc3723bbf6
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ Querying the error indicator
|
||||||
by code that needs to save and restore the error indicator temporarily, e.g.::
|
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);
|
PyErr_Fetch(&type, &value, &traceback);
|
||||||
|
|
||||||
/* ... code that might produce other errors ... */
|
/* ... code that might produce other errors ... */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue