mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-45711: Remove type and traceback from exc_info (GH-30122)
* Do not PUSH/POP traceback or type to the stack as part of exc_info * Remove exc_traceback and exc_type from _PyErr_StackItem * Add to what's new, because this change breaks things like Cython
This commit is contained in:
parent
62a0a2a25d
commit
396b58345f
14 changed files with 228 additions and 389 deletions
|
@ -1028,9 +1028,7 @@ PyThreadState_Clear(PyThreadState *tstate)
|
|||
Py_CLEAR(tstate->curexc_value);
|
||||
Py_CLEAR(tstate->curexc_traceback);
|
||||
|
||||
Py_CLEAR(tstate->exc_state.exc_type);
|
||||
Py_CLEAR(tstate->exc_state.exc_value);
|
||||
Py_CLEAR(tstate->exc_state.exc_traceback);
|
||||
|
||||
/* The stack of exception states should contain just this thread. */
|
||||
if (verbose && tstate->exc_info != &tstate->exc_state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue