]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
* xxobject.c: added tp_as_number, tp_as_sequence, tp_as_mapping to
authorGuido van Rossum <guido@python.org>
Fri, 14 Aug 1992 12:04:19 +0000 (12:04 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Aug 1992 12:04:19 +0000 (12:04 +0000)
  the type object.

Objects/xxobject.c

index bfe9c842889c6df71a4ab07aa50e8b494ff71470..7ab7a73c2484940f56671afced5c22d6faa25cdf 100644 (file)
@@ -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*/
 };