summaryrefslogtreecommitdiff
path: root/Modules/_functoolsmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-14 21:53:04 +0200
committerGitHub <noreply@github.com>2021-10-14 21:53:04 +0200
commit3cc56c828d2d8f8659ea49447234bf0d2b87cd64 (patch)
tree7f204eb39062037d3575d407fda18825e314dd7e /Modules/_functoolsmodule.c
parent39aa98346d5dd8ac591a7cafb467af21c53f1e5d (diff)
downloadcpython-git-3cc56c828d2d8f8659ea49447234bf0d2b87cd64.tar.gz
bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893)
* Move _PyObject_VectorcallTstate() and _PyObject_FastCallTstate() to pycore_call.h (internal C API). * Convert PyObject_CallOneArg(), PyObject_Vectorcall(), _PyObject_FastCall() and PyVectorcall_Function() static inline functions to regular functions. * Add _PyVectorcall_FunctionInline() static inline function. * PyObject_Vectorcall(), _PyObject_FastCall(), and PyObject_CallOneArg() now call _PyThreadState_GET() rather than PyThreadState_Get().
Diffstat (limited to 'Modules/_functoolsmodule.c')
-rw-r--r--Modules/_functoolsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index 4c77ee7b7a..1f6b852f6d 100644
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -269,7 +269,7 @@ partial_vectorcall(partialobject *pto, PyObject *const *args,
static void
partial_setvectorcall(partialobject *pto)
{
- if (PyVectorcall_Function(pto->fn) == NULL) {
+ if (_PyVectorcall_Function(pto->fn) == NULL) {
/* Don't use vectorcall if the underlying function doesn't support it */
pto->vectorcall = NULL;
}