summaryrefslogtreecommitdiffstats
path: root/Objects/xxobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-14 12:04:19 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-14 12:04:19 (GMT)
commit70d7a310a9844d1a3f80c110f1acd3d6059939b4 (patch)
treed0cd3e5168305d9e11a81d8d4bc995f133abb025 /Objects/xxobject.c
parent2670a16c2e45fff501d7fc2b1ce8e93a889b6dc0 (diff)
downloadcpython-70d7a310a9844d1a3f80c110f1acd3d6059939b4.zip
cpython-70d7a310a9844d1a3f80c110f1acd3d6059939b4.tar.gz
cpython-70d7a310a9844d1a3f80c110f1acd3d6059939b4.tar.bz2
* xxobject.c: added tp_as_number, tp_as_sequence, tp_as_mapping to
the type object.
Diffstat (limited to 'Objects/xxobject.c')
-rw-r--r--Objects/xxobject.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/Objects/xxobject.c b/Objects/xxobject.c
index bfe9c84..7ab7a73 100644
--- a/Objects/xxobject.c
+++ b/Objects/xxobject.c
@@ -123,10 +123,13 @@ static typeobject Xxtype = {
sizeof(xxobject), /*tp_size*/
0, /*tp_itemsize*/
/* methods */
- xx_dealloc, /*tp_dealloc*/
- 0, /*tp_print*/
- xx_getattr, /*tp_getattr*/
- xx_setattr, /*tp_setattr*/
- 0, /*tp_compare*/
- 0, /*tp_repr*/
+ xx_dealloc, /*tp_dealloc*/
+ 0, /*tp_print*/
+ xx_getattr, /*tp_getattr*/
+ xx_setattr, /*tp_setattr*/
+ 0, /*tp_compare*/
+ 0, /*tp_repr*/
+ 0, /*tp_as_number*/
+ 0, /*tp_as_sequence*/
+ 0, /*tp_as_mapping*/
};