mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
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.
This commit is contained in:
parent
d474ce8c7a
commit
04dbf3b5ec
11 changed files with 11 additions and 1470 deletions
|
@ -327,16 +327,6 @@ complex_to_buf(char *buf, int bufsz, PyComplexObject *v, int precision)
|
|||
}
|
||||
}
|
||||
|
||||
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 @@ PyTypeObject PyComplex_Type = {
|
|||
sizeof(PyComplexObject),
|
||||
0,
|
||||
complex_dealloc, /* tp_dealloc */
|
||||
(printfunc)complex_print, /* tp_print */
|
||||
0, /* tp_print */
|
||||
0, /* tp_getattr */
|
||||
0, /* tp_setattr */
|
||||
0, /* tp_compare */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue