diff options
author | Guido van Rossum <guido@python.org> | 2007-08-07 19:51:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-07 19:51:00 (GMT) |
commit | 04dbf3b5ec618956c9df58ce1d6e3dc089f5f095 (patch) | |
tree | 034a834eb78fe400f52aeaa3eb2cd663e7a78ccd /Objects/tupleobject.c | |
parent | d474ce8c7a46edb5ab12c616cd307ab34699a816 (diff) | |
download | cpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.zip cpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.tar.gz cpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.tar.bz2 |
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.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 6e30c81..3c5dfb5 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -184,23 +184,6 @@ done: Py_TRASHCAN_SAFE_END(op) } -static int -tupleprint(PyTupleObject *op, FILE *fp, int flags) -{ - Py_ssize_t i; - fprintf(fp, "("); - for (i = 0; i < Py_Size(op); i++) { - if (i > 0) - fprintf(fp, ", "); - if (PyObject_Print(op->ob_item[i], fp, 0) != 0) - return -1; - } - if (Py_Size(op) == 1) - fprintf(fp, ","); - fprintf(fp, ")"); - return 0; -} - static PyObject * tuplerepr(PyTupleObject *v) { @@ -653,7 +636,7 @@ PyTypeObject PyTuple_Type = { sizeof(PyTupleObject) - sizeof(PyObject *), sizeof(PyObject *), (destructor)tupledealloc, /* tp_dealloc */ - (printfunc)tupleprint, /* tp_print */ + 0, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ |