Revert removal of tp_print slot for Python -builtin
Some users might still want to customize this slot.
This commit is contained in:
parent
23d62a8969
commit
90221812c6
1 changed files with 1 additions and 1 deletions
|
|
@ -4013,7 +4013,7 @@ public:
|
|||
printSlot(f, getSlot(n, "feature:python:tp_basicsize", tp_basicsize), "tp_basicsize");
|
||||
printSlot(f, getSlot(n, "feature:python:tp_itemsize"), "tp_itemsize");
|
||||
printSlot(f, getSlot(n, "feature:python:tp_dealloc", tp_dealloc_bad), "tp_dealloc", "destructor");
|
||||
Printv(f, " 0, /* tp_print */\n");
|
||||
printSlot(f, getSlot(n, "feature:python:tp_print"), "tp_print", "printfunc");
|
||||
printSlot(f, getSlot(n, "feature:python:tp_getattr"), "tp_getattr", "getattrfunc");
|
||||
printSlot(f, getSlot(n, "feature:python:tp_setattr"), "tp_setattr", "setattrfunc");
|
||||
Printv(f, "#if PY_VERSION_HEX >= 0x03000000\n", NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue