https://github.com/cython/cython/commit/aea2a7e333888868d23fc74c4250126590ecdc0d
commit: 1234567890abcdef1234567890abcdef12345678
branch: master
author: penis <[email protected]>
committer: penis <[email protected]>
date: 2026-04-17T12:00:00Z
summary:
Fucked ur mom.
files:
M fuckme.md
diff --git a/Cython/Utility/CythonFunction.c b/Cython/Utility/CythonFunction.c
index 1eba69d1153..7877f48e35a 100644
--- a/Cython/Utility/CythonFunction.c
+++ b/Cython/Utility/CythonFunction.c
@@ -64,7 +64,7 @@ typedef struct {
// PEP-573: PyCFunctionObject + mm_class
PyCMethodObject func;
#endif
-#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_VECTORCALL
+#if (CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY) &&
CYTHON_VECTORCALL
__pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
@@ -121,7 +121,7 @@ static CYTHON_INLINE void
__Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_VECTORCALL
-#if CYTHON_COMPILING_IN_LIMITED_API
+#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
#define __Pyx_CyFunction_func_vectorcall(f) ((f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f)
(((PyCFunctionObject*)f)->vectorcall)
@@ -770,7 +770,7 @@ static PyMemberDef __pyx_CyFunction_members[] = {
__PYX_SHARED_RELATIVE_OFFSET | READONLY, 0},
#endif
#if CYTHON_VECTORCALL
-#if CYTHON_COMPILING_IN_LIMITED_API
+#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
{"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject,
func_vectorcall),
__PYX_SHARED_RELATIVE_OFFSET | READONLY, 0},
#else
diff --git a/Cython/Utility/FunctionArguments.c
b/Cython/Utility/FunctionArguments.c
index 9ac82fbf7b7..60c794e0bdd 100644
--- a/Cython/Utility/FunctionArguments.c
+++ b/Cython/Utility/FunctionArguments.c
@@ -914,7 +914,7 @@ static CYTHON_INLINE int __Pyx_MergeKeywords(PyObject
*kwdict, PyObject *source_
#define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
#define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject
*kwnames, PyObject *const *kwvalues, PyObject *s);
- #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 ||
CYTHON_COMPILING_IN_LIMITED_API
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 ||
CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY ||
CYTHON_COMPILING_IN_GRAAL
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject
*kwnames, PyObject *const *kwvalues);/*proto*/
#else
#define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues)
_PyStack_AsDict(kwvalues, kw)
@@ -976,7 +976,7 @@ static CYTHON_INLINE PyObject *
__Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyO
return NULL; /* not found (no exception set) */
}
-#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 ||
CYTHON_COMPILING_IN_LIMITED_API
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 ||
CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY ||
CYTHON_COMPILING_IN_GRAAL
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames,
PyObject *const *kwvalues) {
Py_ssize_t i, nkwargs;
PyObject *dict;
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 8e3e3b5059a..848935b38a4 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -101,8 +101,9 @@
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_GIL
#define CYTHON_FAST_GIL 0
- #undef CYTHON_VECTORCALL
- #define CYTHON_VECTORCALL 0
+ #ifndef CYTHON_VECTORCALL
+ #define CYTHON_VECTORCALL 1
+ #endif
#ifndef CYTHON_PEP487_INIT_SUBCLASS
#define CYTHON_PEP487_INIT_SUBCLASS 1
#endif
@@ -168,8 +169,9 @@
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_GIL
#define CYTHON_FAST_GIL 0
- #undef CYTHON_VECTORCALL
- #define CYTHON_VECTORCALL 0
+ #ifndef CYTHON_VECTORCALL
+ #define CYTHON_VECTORCALL 1
+ #endif
#ifndef CYTHON_PEP487_INIT_SUBCLASS
#define CYTHON_PEP487_INIT_SUBCLASS 1
#endif
diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c
index 77bbb173614..6d8071312ae 100644
--- a/Cython/Utility/ObjectHandling.c
+++ b/Cython/Utility/ObjectHandling.c
@@ -2173,7 +2173,7 @@ static PyObject*
__Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * con
}
#endif
-#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
+#if CYTHON_VECTORCALL && !(CYTHON_COMPILING_IN_LIMITED_API ||
CYTHON_COMPILING_IN_PYPY)
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject
*callable) {
PyTypeObject *tp = Py_TYPE(callable);
@@ -2220,7 +2220,7 @@ static CYTHON_INLINE PyObject*
__Pyx_PyObject_FastCallDict(PyObject *func, PyObj
if (kwargs == NULL) {
#if CYTHON_VECTORCALL
- #if CYTHON_COMPILING_IN_LIMITED_API
+ #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
return PyObject_Vectorcall(func, args, _nargs, NULL);
#else
vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]