diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-21 02:03:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 02:03:22 (GMT) |
commit | e63894b3eed8ad2dd7690695f7f07bfbff59c05a (patch) | |
tree | 9f94d5ec7bce674f6be5384fa5933f4fae1221c5 /Include | |
parent | 9087243e2c167e38570e819b228efc3492c38c9c (diff) | |
download | cpython-e63894b3eed8ad2dd7690695f7f07bfbff59c05a.zip cpython-e63894b3eed8ad2dd7690695f7f07bfbff59c05a.tar.gz cpython-e63894b3eed8ad2dd7690695f7f07bfbff59c05a.tar.bz2 |
bpo-46850: Remove _PyEval_CallTracing() function (GH-32019)
Remove the private undocumented function _PyEval_CallTracing() from
the C API. Call the public sys.call_tracing() function instead.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/ceval.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_ceval.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Include/cpython/ceval.h b/Include/cpython/ceval.h index e0a6887..9d4eeaf 100644 --- a/Include/cpython/ceval.h +++ b/Include/cpython/ceval.h @@ -2,8 +2,6 @@ # error "this header file must not be included directly" #endif -PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args); - PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 59a3453..45d26a3 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -34,6 +34,9 @@ PyAPI_FUNC(void) _PyEval_SignalAsyncExc(PyInterpreterState *interp); extern PyStatus _PyEval_ReInitThreads(PyThreadState *tstate); #endif +// Used by sys.call_tracing() +extern PyObject* _PyEval_CallTracing(PyObject *func, PyObject *args); + // Used by sys.get_asyncgen_hooks() extern PyObject* _PyEval_GetAsyncGenFirstiter(void); extern PyObject* _PyEval_GetAsyncGenFinalizer(void); |