Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
29ad9644
Commit
29ad9644
authored
Dec 25, 2021
by
Matti Picus
Committed by
Stefan Behnel
Dec 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to upcoming PyPy3.8/9 releases (GH4517)
parent
af5b1ce6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
Cython/Compiler/TypeSlots.py
Cython/Compiler/TypeSlots.py
+1
-1
Cython/Utility/AsyncGen.c
Cython/Utility/AsyncGen.c
+4
-4
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+4
-4
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+2
-2
tests/build/module_api.srctree
tests/build/module_api.srctree
+2
-1
No files found.
Cython/Compiler/TypeSlots.py
View file @
29ad9644
...
...
@@ -891,7 +891,7 @@ slot_table = (
EmptySlot
(
"tp_vectorcall"
,
ifdef
=
"PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)"
),
EmptySlot
(
"tp_print"
,
ifdef
=
"PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000"
),
# PyPy specific extension - only here to avoid C compiler warnings.
EmptySlot
(
"tp_pypy_flags"
,
ifdef
=
"CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000"
),
EmptySlot
(
"tp_pypy_flags"
,
ifdef
=
"CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000"
),
)
#------------------------------------------------------------------------------------------
...
...
Cython/Utility/AsyncGen.c
View file @
29ad9644
...
...
@@ -427,7 +427,7 @@ static PyTypeObject __pyx_AsyncGenType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -665,7 +665,7 @@ static PyTypeObject __pyx__PyAsyncGenASendType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -783,7 +783,7 @@ static PyTypeObject __pyx__PyAsyncGenWrappedValueType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -1071,7 +1071,7 @@ static PyTypeObject __pyx__PyAsyncGenAThrowType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
Cython/Utility/Coroutine.c
View file @
29ad9644
...
...
@@ -1563,7 +1563,7 @@ static PyTypeObject __pyx_CoroutineAwaitType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -1723,7 +1723,7 @@ static PyTypeObject __pyx_CoroutineType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -1837,7 +1837,7 @@ static PyTypeObject __pyx_IterableCoroutineType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -1948,7 +1948,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
Cython/Utility/CythonFunction.c
View file @
29ad9644
...
...
@@ -736,7 +736,7 @@ static PyTypeObject __pyx_CyFunctionType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
@@ -1268,7 +1268,7 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0
,
/*tp_print*/
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
0x0308
0000
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >
= 0x0309
0000
0
,
/*tp_pypy_flags*/
#endif
};
...
...
tests/build/module_api.srctree
View file @
29ad9644
...
...
@@ -108,9 +108,10 @@ void inita(void)
if (!sys_modules) return;
mod = PyInit_a();
if (!mod) return;
#if PY_VERSION_HEX >= 0x03050000
#if PY_VERSION_HEX >= 0x03050000
&& (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
/* FIXME: this is incomplete and users shouldn't have to do this in the first place... */
if (!PyModule_Check(mod)) {
/* In PEP 489 multi-phase init, PyInit_a returns PyModuleDef */
PyModuleDef *mdef = (PyModuleDef*)mod;
PyObject *modname = PyUnicode_FromString("a");
if (!modname) return;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment