Adding tp_finalize field to PyTypeObject for Python 3.4 and -builtin
This commit is contained in:
parent
b7a3516801
commit
5724195b8b
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue