GH-102818: Do not call PyTraceBack_Here in sys.settrace trampoline. (GH-104579)

This commit is contained in:
Mark Shannon 2023-05-19 12:40:48 +01:00 committed by GitHub
parent 616fcad6e2
commit c26d03d5d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 89 additions and 4 deletions

View file

@ -950,10 +950,6 @@ call_trampoline(PyThreadState *tstate, PyObject* callback,
PyObject *result = _PyObject_FastCallTstate(tstate, callback, stack, 3);
PyFrame_LocalsToFast(frame, 1);
if (result == NULL) {
PyTraceBack_Here(frame);
}
return result;
}