Kill all uses and definitions of tp_print under Objects/. (Others will follow.)
Finally kill intobject.c, which was #ifdef'ed out a long time ago.
diff --git a/Objects/object.c b/Objects/object.c
index a725022..3eaf6fa 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -279,7 +279,7 @@
universally available */
fprintf(fp, "<refcnt %ld at %p>",
(long)op->ob_refcnt, op);
- else if (Py_Type(op)->tp_print == NULL) {
+ else {
PyObject *s;
if (flags & Py_PRINT_RAW)
s = PyObject_Str(op);
@@ -293,8 +293,6 @@
}
Py_XDECREF(s);
}
- else
- ret = (*Py_Type(op)->tp_print)(op, fp, flags);
}
if (ret == 0) {
if (ferror(fp)) {