mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-36974: remove _PyObject_HasFastCall (GH-13460)
This commit is contained in:
parent
735e8afa9e
commit
c145f3bfbe
3 changed files with 2 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue