mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -9,22 +9,6 @@ static PyObject *
|
|||
cfunction_call_varargs(PyObject *func, PyObject *args, PyObject *kwargs);
|
||||
|
||||
|
||||
int
|
||||
_PyObject_HasFastCall(PyObject *callable)
|
||||
{
|
||||
if (PyFunction_Check(callable)) {
|
||||
return 1;
|
||||
}
|
||||
else if (PyCFunction_Check(callable)) {
|
||||
return !(PyCFunction_GET_FLAGS(callable) & METH_VARARGS);
|
||||
}
|
||||
else {
|
||||
assert (PyCallable_Check(callable));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static PyObject *
|
||||
null_error(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue