◐ Shell
clean mode source ↗

bpo-46850: Move private _PyEval functions to internal C API by vstinner · Pull Request #31532 · python/cpython

Remove the following _PyEval private functions (move them to the
internal C API pycore_ceval.h header):

* _PyEval_CallTracing()
* _PyEval_EvalFrameDefault()
* _PyEval_GetAsyncGenFinalizer()
* _PyEval_GetAsyncGenFirstiter()
* _PyEval_GetCoroutineOriginTrackingDepth()
* _PyEval_GetSwitchInterval()
* _PyEval_RequestCodeExtraIndex()
* _PyEval_SetAsyncGenFinalizer()
* _PyEval_SetAsyncGenFirstiter()
* _PyEval_SetProfile()
* _PyEval_SetSwitchInterval()
* _PyEval_SetTrace()

_PyEval_EvalFrameDefault() uses the InterpreterFrame type which is
only part of the internal C API.

Keep the following functions in Include/cpython/ceval.h:

* _PyEval_GetBuiltin()
* _PyEval_GetBuiltinId()
* _PyEval_SliceIndex()
* _PyEval_SliceIndexNotNone()

@vstinner vstinner changed the title bpo-46836: Move private _PyEval functions to internal C API bpo-46850: Move private _PyEval functions to internal C API

Feb 24, 2022

@vstinner vstinner marked this pull request as ready for review

February 24, 2022 15:44