enable Py_TPFLAGS_HAVE_FINALIZE flag for extension types that need it
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 4 Aug 2013 13:57:52 +0000 (15:57 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 4 Aug 2013 13:57:52 +0000 (15:57 +0200)
Cython/Compiler/TypeSlots.py

index 2038338..c82c66a 100644 (file)
@@ -405,6 +405,8 @@ class TypeFlagsSlot(SlotDescriptor):
             value += "|Py_TPFLAGS_BASETYPE"
         if scope.needs_gc():
             value += "|Py_TPFLAGS_HAVE_GC"
+        if scope.needs_finalisation():
+            value += "|Py_TPFLAGS_HAVE_FINALIZE"
         return value