diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-05-30 10:43:59 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2019-05-30 10:43:58 (GMT) |
commit | c145f3bfbe80d498d40848450d4d33c14e2cf782 (patch) | |
tree | e290ce5742c55e9205b663729a014067f1a0fa04 /Modules | |
parent | 735e8afa9ee942367b5d0807633a2b9f662cbdbf (diff) | |
download | cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.zip cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.tar.gz cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.tar.bz2 |
bpo-36974: remove _PyObject_HasFastCall (GH-13460)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_functoolsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index 13f2db9..213fb3e 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -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); |