]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
new tp_str and tp_doc members in type object
authorGuido van Rossum <guido@python.org>
Sat, 7 Jan 1995 10:32:04 +0000 (10:32 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 7 Jan 1995 10:32:04 +0000 (10:32 +0000)
Include/object.h

index 433876feaf7eabe80a5d6ead4d76abb5ac6c001c..58e2d15d88ea351d4278239e9029f8e6ad54a470 100644 (file)
@@ -218,6 +218,16 @@ typedef struct _typeobject {
 
        hashfunc tp_hash;
        binaryfunc tp_call;
+       reprfunc tp_str;
+
+       /* Space for future expansion */
+       long tp_xxx1;
+       long tp_xxx2;
+       long tp_xxx3;
+       long tp_xxx4;
+
+       char *tp_doc; /* Documentation string */
+
 #ifdef COUNT_ALLOCS
        /* these must be last */
        int tp_alloc;