bpo-36974: remove _PyObject_HasFastCall (GH-13460)

This commit is contained in:
Jeroen Demeyer 2019-05-30 12:43:59 +02:00 committed by Petr Viktorin
parent 735e8afa9e
commit c145f3bfbe
3 changed files with 2 additions and 22 deletions

View file

@ -107,7 +107,7 @@ partial_new(PyTypeObject *type, PyObject *args, PyObject *kw)
return NULL;
}
pto->use_fastcall = _PyObject_HasFastCall(func);
pto->use_fastcall = (_PyVectorcall_Function(func) != NULL);
return (PyObject *)pto;
}
@ -365,7 +365,7 @@ partial_setstate(partialobject *pto, PyObject *state)
Py_INCREF(dict);
Py_INCREF(fn);
pto->use_fastcall = _PyObject_HasFastCall(fn);
pto->use_fastcall = (_PyVectorcall_Function(fn) != NULL);
Py_SETREF(pto->fn, fn);
Py_SETREF(pto->args, fnargs);
Py_SETREF(pto->kw, kw);