mirror of https://github.com/python/cpython.git
new tp_str and tp_doc members in type object
This commit is contained in:
parent
4a1da26891
commit
6fde390655
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue