From 72bacecdb4292ff6e4f57ebb1cdbe8dfb035c56d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 3 Aug 2013 18:33:10 +0200 Subject: [PATCH] add tp_finalize slot for Py3.4+ --- Cython/Compiler/TypeSlots.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index 49eacd4..d314f14 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -788,6 +788,8 @@ slot_table = ( EmptySlot("tp_weaklist"), 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"), ) #------------------------------------------------------------------------------------------ -- 2.7.4