From 38464a05e93a17f269c2718b0ccb3890c7fe881c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 25 Dec 2024 23:47:15 +0100 Subject: [PATCH] Remove leading underscore from PyObject_Vectorcall --- mypyc/lib-rt/pythonsupport.h | 4 ++-- mypyc/primitives/generic_ops.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mypyc/lib-rt/pythonsupport.h b/mypyc/lib-rt/pythonsupport.h index 61929f5126082..33c2848b2df16 100644 --- a/mypyc/lib-rt/pythonsupport.h +++ b/mypyc/lib-rt/pythonsupport.h @@ -69,7 +69,7 @@ update_bases(PyObject *bases) } continue; } - new_base = _PyObject_Vectorcall(meth, stack, 1, NULL); + new_base = PyObject_Vectorcall(meth, stack, 1, NULL); Py_DECREF(meth); if (!new_base) { goto error; @@ -118,7 +118,7 @@ init_subclass(PyTypeObject *type, PyObject *kwds) PyObject *super, *func, *result; PyObject *args[2] = {(PyObject *)type, (PyObject *)type}; - super = _PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL); + super = PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL); if (super == NULL) { return -1; } diff --git a/mypyc/primitives/generic_ops.py b/mypyc/primitives/generic_ops.py index fe42767db11e5..54510d99cf87a 100644 --- a/mypyc/primitives/generic_ops.py +++ b/mypyc/primitives/generic_ops.py @@ -281,7 +281,7 @@ object_rprimitive, ], # Keyword arg names tuple (or NULL) return_type=object_rprimitive, - c_function_name="_PyObject_Vectorcall", + c_function_name="PyObject_Vectorcall", error_kind=ERR_MAGIC, )