Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fde390

Browse files
committed
new tp_str and tp_doc members in type object
1 parent 4a1da26 commit 6fde390

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Include/object.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ typedef struct _typeobject {
218218

219219
hashfunc tp_hash;
220220
binaryfunc tp_call;
221+
reprfunc tp_str;
222+
223+
/* Space for future expansion */
224+
long tp_xxx1;
225+
long tp_xxx2;
226+
long tp_xxx3;
227+
long tp_xxx4;
228+
229+
char *tp_doc; /* Documentation string */
230+
221231
#ifdef COUNT_ALLOCS
222232
/* these must be last */
223233
int tp_alloc;

0 commit comments

Comments
 (0)