adapt more type structs to Py3.4
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 3 Aug 2013 19:28:15 +0000 (21:28 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 3 Aug 2013 19:28:15 +0000 (21:28 +0200)
Cython/Compiler/TypeSlots.py
Cython/Utility/CythonFunction.c
Cython/Utility/Generator.c

index d314f14..e3b7a6d 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 >= 0x03040000"),
+    EmptySlot("tp_finalize", ifdef="PY_VERSION_HEX >= 0x03040a00"),
 )
 
 #------------------------------------------------------------------------------------------
index d470d1e..1d479ed 100644 (file)
@@ -634,6 +634,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
+#if PY_VERSION_HEX >= 0x03040a00
+    0,                                  /*tp_finalize*/
+#endif
 };
 
 
@@ -1079,6 +1082,9 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
+#if PY_VERSION_HEX >= 0x03040a00
+    0,                                  /*tp_finalize*/
+#endif
 };
 
 static int __pyx_FusedFunction_init(void) {
index c0ba0d8..464690c 100644 (file)
@@ -608,6 +608,9 @@ static PyTypeObject __pyx_GeneratorType_type = {
 #if PY_VERSION_HEX >= 0x02060000
     0,                                  /*tp_version_tag*/
 #endif
+#if PY_VERSION_HEX >= 0x03040a00
+    0,                                  /*tp_finalize*/
+#endif
 };
 
 static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body,