From 88bf3f072ef6711737728d01a85eab7992ca8101 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 16 Apr 2021 08:35:14 +0200 Subject: Remove duplicated ticket prefix. --- tests/run/special_methods_T561.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run/special_methods_T561.pyx b/tests/run/special_methods_T561.pyx index d585f35d0..edc9851fa 100644 --- a/tests/run/special_methods_T561.pyx +++ b/tests/run/special_methods_T561.pyx @@ -1,6 +1,6 @@ # mode: run -# ticket: tt561 -# ticket: tt3 +# ticket: t561 +# ticket: t3 # The patch in #561 changes code generation for most special methods # to remove the Cython-generated wrapper and let PyType_Ready() -- cgit v1.2.1 From 66eb66f2f0c0cfa22942853659d444b6f4ecb799 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 16 Apr 2021 08:57:10 +0200 Subject: Disable __Pyx_PyType_Ready() usage in PyPy & friends where it fails to compile currently. They should generally be happy with their own implementation. See https://github.com/cython/cython/pull/4107 --- Cython/Utility/ExtensionTypes.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c index 26bc2d9d9..29fc3440d 100644 --- a/Cython/Utility/ExtensionTypes.c +++ b/Cython/Utility/ExtensionTypes.c @@ -1,10 +1,16 @@ /////////////// PyType_Ready.proto /////////////// -static int __Pyx_PyType_Ready(PyTypeObject *t); +// FIXME: is this really suitable for CYTHON_COMPILING_IN_LIMITED_API? +#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API +static int __Pyx_PyType_Ready(PyTypeObject *t);/*proto*/ +#else +#define __Pyx_PyType_Ready(t) PyType_Ready(t) +#endif /////////////// PyType_Ready /////////////// //@requires: ObjectHandling.c::PyObjectCallNoArg +#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API // Wrapper around PyType_Ready() with some runtime checks and fixes // to deal with multiple inheritance. static int __Pyx_PyType_Ready(PyTypeObject *t) { @@ -136,6 +142,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { return r; } +#endif /////////////// PyTrashcan.proto /////////////// -- cgit v1.2.1