Skip to content

Commit 107c434

Browse files
committed
Use Python 3.13a4 PyCFunctionFastWithKeywords
* python/cpython@9e3729b * python/cpython#114627 * capi-workgroup/decisions#11
1 parent a8b26e9 commit 107c434

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Cython/Utility/CythonFunction.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func,
10191019
return NULL;
10201020
}
10211021

1022-
return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
1022+
return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
10231023
}
10241024

10251025
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)

Cython/Utility/ModuleSetupCode.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,11 @@ class __Pyx_FakeReference {
908908
Py_ssize_t nargs, PyObject *kwnames);
909909
#else
910910
#define __Pyx_PyCFunctionFast _PyCFunctionFast
911-
#define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
911+
#if PY_VERSION_HEX >= 0x030D00A4
912+
# define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
913+
#else
914+
# define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
915+
#endif
912916
#endif
913917

914918
#if CYTHON_METH_FASTCALL

0 commit comments

Comments
 (0)