diff options
author | Matti Picus <matti.picus@gmail.com> | 2023-05-16 09:21:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 08:21:43 +0200 |
commit | fbe6162b0eee8c49b294ceb6af5fbe9aa0b9e6c2 (patch) | |
tree | 7064a6218076f33a0af70b631176c037296cf87e /Cython/Compiler/TypeSlots.py | |
parent | dec61cdd222ded6d5f96a635d9c4b0dddcbc4e78 (diff) | |
download | cython-fbe6162b0eee8c49b294ceb6af5fbe9aa0b9e6c2.tar.gz |
Keep the "tp_print" slot for PyPy < 3.10 and CPython < 3.9 (GH-5437)
Diffstat (limited to 'Cython/Compiler/TypeSlots.py')
-rw-r--r-- | Cython/Compiler/TypeSlots.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index 115e3e754..2c891f648 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -1100,7 +1100,7 @@ class SlotTable(object): SyntheticSlot("tp_finalize", ["__del__"], "0", ifdef="PY_VERSION_HEX >= 0x030400a1", used_ifdef="CYTHON_USE_TP_FINALIZE"), 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"), + EmptySlot("tp_print", ifdef="__PYX_NEED_TP_PRINT_SLOT == 1"), EmptySlot("tp_watched", ifdef="PY_VERSION_HEX >= 0x030C0000"), # PyPy specific extension - only here to avoid C compiler warnings. EmptySlot("tp_pypy_flags", ifdef="CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000"), |