bpo-46850: Remove _PyEval_CallTracing() function by vstinner · Pull Request #32019 · python/cpython
PyObject * PyObject* _PyEval_CallTracing(PyObject *func, PyObject *args) { // Save and disable tracing PyThreadState *tstate = _PyThreadState_GET(); int save_tracing = tstate->tracing; int save_use_tracing = tstate->cframe->use_tracing; PyObject *result;
tstate->tracing = 0; result = PyObject_Call(func, args, NULL);
// Call the tracing function PyObject *result = PyObject_Call(func, args, NULL);
// Restore tracing tstate->tracing = save_tracing; tstate->cframe->use_tracing = save_use_tracing; return result;