diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index 6a0e08af4..1c426e615 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -155,7 +155,7 @@ swig_varlink_type(void) { sizeof(swig_varlinkobject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ + 0, /* tp_print */ (getattrfunc) swig_varlink_getattr, /* tp_getattr */ (setattrfunc) swig_varlink_setattr, /* tp_setattr */ 0, /* tp_compare */ diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 7386ff7e2..53b952599 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -822,7 +822,7 @@ SwigPyPacked_TypeOnce(void) { sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ + 0, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 8764fd97f..a595a83fd 100755 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -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"); - printSlot(f, getSlot(n, "feature:python:tp_print"), "tp_print", "printfunc"); + Printv(f, " 0, /* tp_print */\n"); 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);