Mercurial > cpython-lru_cache-weakref
diff Objects/moduleobject.c @ 1051:f54e64c8b9b7 legacy-trunk
* 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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Sep 1992 17:54:56 +0000 |
| parents | 7a11a70f7f44 |
| children | 1cabc2b6c970 |
line wrap: on
line diff
--- a/Objects/moduleobject.c Sun Sep 13 20:07:29 1992 +0000 +++ b/Objects/moduleobject.c Thu Sep 17 17:54:56 1992 +0000 @@ -83,17 +83,6 @@ free((char *)m); } -/* ARGSUSED */ -static int -module_print(m, fp, flags) - moduleobject *m; - FILE *fp; - int flags; /* Not used but required by interface */ -{ - fprintf(fp, "<module '%s'>", getstringvalue(m->md_name)); - return 0; -} - static object * module_repr(m) moduleobject *m; @@ -153,7 +142,7 @@ sizeof(moduleobject), /*tp_size*/ 0, /*tp_itemsize*/ module_dealloc, /*tp_dealloc*/ - module_print, /*tp_print*/ + 0, /*tp_print*/ module_getattr, /*tp_getattr*/ module_setattr, /*tp_setattr*/ 0, /*tp_compare*/
