From 4727379d9441c4871a24c053cd9972271476bba3 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 4 Aug 2013 15:57:52 +0200 Subject: [PATCH] enable Py_TPFLAGS_HAVE_FINALIZE flag for extension types that need it --- Cython/Compiler/TypeSlots.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index 2038338..c82c66a 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -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 -- 2.7.4