mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
* 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.
This commit is contained in:
parent
c2670a000b
commit
7066dd75c5
11 changed files with 126 additions and 142 deletions
|
@ -28,17 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
/* Type object implementation */
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
type_print(v, fp, flags)
|
||||
typeobject *v;
|
||||
FILE *fp;
|
||||
int flags;
|
||||
{
|
||||
fprintf(fp, "<type '%s'>", v->tp_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static object *
|
||||
type_repr(v)
|
||||
typeobject *v;
|
||||
|
@ -55,7 +44,7 @@ typeobject Typetype = {
|
|||
sizeof(typeobject), /* Basic object size */
|
||||
0, /* Item size for varobject */
|
||||
0, /*tp_dealloc*/
|
||||
type_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