add tp_finalize slot for Py3.4+
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 3 Aug 2013 16:33:10 +0000 (18:33 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 3 Aug 2013 16:33:10 +0000 (18:33 +0200)
Cython/Compiler/TypeSlots.py

index 49eacd4..d314f14 100644 (file)
@@ -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"),
 )
 
 #------------------------------------------------------------------------------------------