Adding tp_finalize field to PyTypeObject for Python 3.4 and -builtin

This commit is contained in:
William S Fulton 2015-12-12 21:41:33 +00:00
commit 5724195b8b

View file

@ -4050,6 +4050,9 @@ public:
Printv(f, "#if PY_VERSION_HEX >= 0x02060000\n", NIL);
printSlot(f, getSlot(n, "feature:python:tp_version_tag"), "tp_version_tag", "int");
Printv(f, "#endif\n", NIL);
Printv(f, "#if PY_VERSION_HEX >= 0x03040000\n", NIL);
printSlot(f, getSlot(n, "feature:python:tp_finalize"), "tp_finalize", "destructor");
Printv(f, "#endif\n", NIL);
Printf(f, " },\n");
// PyAsyncMethods as_async