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

Skip to content

Commit 70d7a31

Browse files
committed
* xxobject.c: added tp_as_number, tp_as_sequence, tp_as_mapping to
the type object.
1 parent 2670a16 commit 70d7a31

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Objects/xxobject.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,13 @@ static typeobject Xxtype = {
123123
sizeof(xxobject), /*tp_size*/
124124
0, /*tp_itemsize*/
125125
/* methods */
126-
xx_dealloc, /*tp_dealloc*/
127-
0, /*tp_print*/
128-
xx_getattr, /*tp_getattr*/
129-
xx_setattr, /*tp_setattr*/
130-
0, /*tp_compare*/
131-
0, /*tp_repr*/
126+
xx_dealloc, /*tp_dealloc*/
127+
0, /*tp_print*/
128+
xx_getattr, /*tp_getattr*/
129+
xx_setattr, /*tp_setattr*/
130+
0, /*tp_compare*/
131+
0, /*tp_repr*/
132+
0, /*tp_as_number*/
133+
0, /*tp_as_sequence*/
134+
0, /*tp_as_mapping*/
132135
};

0 commit comments

Comments
 (0)