diff options
author | Guido van Rossum <guido@python.org> | 1992-09-17 17:54:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-09-17 17:54:56 (GMT) |
commit | 7066dd75c5ee8385135541d03fb8edd8939ad740 (patch) | |
tree | e118a32af87a83e295de0985b67da90524203c6a /Objects/methodobject.c | |
parent | c2670a000bd69fb689a7b05436ff0091052f4f3c (diff) | |
download | cpython-7066dd75c5ee8385135541d03fb8edd8939ad740.zip cpython-7066dd75c5ee8385135541d03fb8edd8939ad740.tar.gz cpython-7066dd75c5ee8385135541d03fb8edd8939ad740.tar.bz2 |
* Makefile: added IMGFILE; moved some stuff around.
* flmodule.c: added some missing functions; changed readonly flags of
some data members based upon FORMS documentation.
* listobject.c: fixed int/long arg lint bug (bites PC compilers).
* several: removed redundant print methods (repr is good enough).
* posixmodule.c: added (still experimental) process group functions.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 3b7c016..d0b29c7 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -99,21 +99,6 @@ meth_dealloc(m) free((char *)m); } -/* ARGSUSED */ -static int -meth_print(m, fp, flags) - methodobject *m; - FILE *fp; - int flags; /* Not used but required by interface */ -{ - if (m->m_self == NULL) - fprintf(fp, "<built-in function '%s'>", m->m_name); - else - fprintf(fp, "<built-in method '%s' of some %s object>", - m->m_name, m->m_self->ob_type->tp_name); - return 0; -} - static object * meth_repr(m) methodobject *m; @@ -131,11 +116,11 @@ meth_repr(m) typeobject Methodtype = { OB_HEAD_INIT(&Typetype) 0, - "method", + "builtin_function_or_method", sizeof(methodobject), 0, meth_dealloc, /*tp_dealloc*/ - meth_print, /*tp_print*/ + 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ |