mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-106023: Update code using _PyObject_FastCall() (#106257)
Replace _PyObject_FastCall() calls with PyObject_Vectorcall().
This commit is contained in:
parent
e7bc8d1636
commit
8c5f74fc89
10 changed files with 434 additions and 453 deletions
|
@ -10013,7 +10013,8 @@ static int
|
|||
type_new_init_subclass(PyTypeObject *type, PyObject *kwds)
|
||||
{
|
||||
PyObject *args[2] = {(PyObject *)type, (PyObject *)type};
|
||||
PyObject *super = _PyObject_FastCall((PyObject *)&PySuper_Type, args, 2);
|
||||
PyObject *super = PyObject_Vectorcall((PyObject *)&PySuper_Type,
|
||||
args, 2, NULL);
|
||||
if (super == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue