pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/29780/commits/995ec591eb4e00af481cd33bcec3e4a928aa4efe

.githubassets.com/assets/code-c22301b4e838281c.css" /> bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance by iritkatriel · Pull Request #29780 · python/cpython · GitHub
Skip to content
Prev Previous commit
Next Next commit
remove p_ prefix from arg names in PyErr_SetExcInfo
  • Loading branch information
iritkatriel committed Nov 26, 2021
commit 995ec591eb4e00af481cd33bcec3e4a928aa4efe
12 changes: 6 additions & 6 deletions Python/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ PyErr_GetExcInfo(PyObject **p_type, PyObject **p_value, PyObject **p_traceback)
}

void
PyErr_SetExcInfo(PyObject *p_type, PyObject *p_value, PyObject *p_traceback)
PyErr_SetExcInfo(PyObject *type, PyObject *value, PyObject *traceback)
{
PyObject *oldtype, *oldvalue, *oldtraceback;
PyThreadState *tstate = _PyThreadState_GET();
Expand All @@ -532,15 +532,15 @@ PyErr_SetExcInfo(PyObject *p_type, PyObject *p_value, PyObject *p_traceback)
oldtraceback = tstate->exc_info->exc_traceback;


tstate->exc_info->exc_type = get_exc_type(p_value);
tstate->exc_info->exc_type = get_exc_type(value);
Py_XINCREF(tstate->exc_info->exc_type);
tstate->exc_info->exc_value = p_value;
tstate->exc_info->exc_traceback = get_exc_traceback(p_value);
tstate->exc_info->exc_value = value;
tstate->exc_info->exc_traceback = get_exc_traceback(value);
Py_XINCREF(tstate->exc_info->exc_traceback);

/* These args are no longer used, but we still need to steal a ref */
Py_XDECREF(p_type);
Py_XDECREF(p_traceback);
Py_XDECREF(type);
Py_XDECREF(traceback);

Py_XDECREF(oldtype);
Py_XDECREF(oldvalue);
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy