Mercurial > cpython-lru_cache-weakref
diff Objects/complexobject.c @ 42477:e7fd327e0c19
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 07 Aug 2007 19:51:00 +0000 |
| parents | 8c165d20709f |
| children | d5b52d56beba |
line wrap: on
line diff
--- a/Objects/complexobject.c Tue Aug 07 19:42:11 2007 +0000 +++ b/Objects/complexobject.c Tue Aug 07 19:51:00 2007 +0000 @@ -327,16 +327,6 @@ } } -static int -complex_print(PyComplexObject *v, FILE *fp, int flags) -{ - char buf[100]; - complex_to_buf(buf, sizeof(buf), v, - (flags & Py_PRINT_RAW) ? PREC_STR : PREC_REPR); - fputs(buf, fp); - return 0; -} - static PyObject * complex_repr(PyComplexObject *v) { @@ -1005,7 +995,7 @@ sizeof(PyComplexObject), 0, complex_dealloc, /* tp_dealloc */ - (printfunc)complex_print, /* tp_print */ + 0, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */
