fix CPython version check for tp_finalize()
authorStefan Behnel <stefan_ml@behnel.de>
Tue, 6 Aug 2013 07:28:07 +0000 (09:28 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Tue, 6 Aug 2013 07:28:07 +0000 (09:28 +0200)
Cython/Compiler/TypeSlots.py
Cython/Utility/CythonFunction.c
Cython/Utility/Generator.c

index e3b7a6d..7d16853 100644 (file)
@@ -789,7 +789,7 @@ slot_table = (
     EmptySlot("tp_del"),
     EmptySlot("tp_version_tag", ifdef="PY_VERSION_HEX >= 0x02060000"),
     # TODO: change __dealloc__ to be called by tp_finalize (PEP 442)
-    EmptySlot("tp_finalize", ifdef="PY_VERSION_HEX >= 0x03040a00"),
+    EmptySlot("tp_finalize", ifdef="PY_VERSION_HEX >= 0x030400a1"),
 )
 
 #------------------------------------------------------------------------------------------
index 1d479ed..4d1b077 100644 (file)
@@ -634,7 +634,7 @@ static PyTypeObject __pyx_CyFunctionType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
-#if PY_VERSION_HEX >= 0x03040a00
+#if PY_VERSION_HEX >= 0x030400a1
     0,                                  /*tp_finalize*/
 #endif
 };
@@ -1082,7 +1082,7 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
-#if PY_VERSION_HEX >= 0x03040a00
+#if PY_VERSION_HEX >= 0x030400a1
     0,                                  /*tp_finalize*/
 #endif
 };
index 464690c..8893798 100644 (file)
@@ -608,7 +608,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
-#if PY_VERSION_HEX >= 0x03040a00
+#if PY_VERSION_HEX >= 0x030400a1
     0,                                  /*tp_finalize*/
 #endif
 };