Victor requested to add the new PyList_Extend and PyList_Clear to limited API: python/cpython#111862
This API can be trivially replaced by PyObject_CallMethod/PyObject_VectorcallMethod -- or in this case, by PyList_SetSlice.
I would prefer to not add API that has such a trivial Python equivalent, unless there's a clear need for it (e.g. for performance) in third-party projects.
Victor requested to add the new
PyList_ExtendandPyList_Clearto limited API: python/cpython#111862This API can be trivially replaced by
PyObject_CallMethod/PyObject_VectorcallMethod-- or in this case, byPyList_SetSlice.I would prefer to not add API that has such a trivial Python equivalent, unless there's a clear need for it (e.g. for performance) in third-party projects.