summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-26 06:08:12 (GMT)
committerGitHub <noreply@github.com>2023-06-26 06:08:12 (GMT)
commit00e75a33728cdad7c10088acc36bc55b2f4a0efe (patch)
treec7be67273878a3b655a93f7a3500cff95c20e47f /Objects
parent93a970ffbce58657cc99305be69e460a11371730 (diff)
downloadcpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.zip
cpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.tar.gz
cpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.tar.bz2
gh-106084: Remove old PyObject call aliases (#106085)
Remove old aliases which were kept backwards compatibility with Python 3.8: * _PyObject_CallMethodNoArgs() * _PyObject_CallMethodOneArg() * _PyObject_CallOneArg() * _PyObject_FastCallDict() * _PyObject_Vectorcall() * _PyObject_VectorcallMethod() * _PyVectorcall_Function() Update code which used these aliases to use new names.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/call.c4
-rw-r--r--Objects/descrobject.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/Objects/call.c b/Objects/call.c
index 40eccef..fc8a6f9 100644
--- a/Objects/call.c
+++ b/Objects/call.c
@@ -122,7 +122,7 @@ _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable,
assert(nargs == 0 || args != NULL);
assert(kwargs == NULL || PyDict_Check(kwargs));
- vectorcallfunc func = _PyVectorcall_Function(callable);
+ vectorcallfunc func = PyVectorcall_Function(callable);
if (func == NULL) {
/* Use tp_call instead */
return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwargs);
@@ -349,7 +349,7 @@ _PyObject_Call(PyThreadState *tstate, PyObject *callable,
assert(PyTuple_Check(args));
assert(kwargs == NULL || PyDict_Check(kwargs));
EVAL_CALL_STAT_INC_IF_FUNCTION(EVAL_CALL_API, callable);
- vectorcallfunc vector_func = _PyVectorcall_Function(callable);
+ vectorcallfunc vector_func = PyVectorcall_Function(callable);
if (vector_func != NULL) {
return _PyVectorcall_Call(tstate, vector_func, callable, args, kwargs);
}
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 72ac470..98d8698 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -1110,9 +1110,9 @@ mappingproxy_get(mappingproxyobject *pp, PyObject *const *args, Py_ssize_t nargs
{
return NULL;
}
- return _PyObject_VectorcallMethod(&_Py_ID(get), newargs,
- 3 | PY_VECTORCALL_ARGUMENTS_OFFSET,
- NULL);
+ return PyObject_VectorcallMethod(&_Py_ID(get), newargs,
+ 3 | PY_VECTORCALL_ARGUMENTS_OFFSET,
+ NULL);
}
static PyObject *