]> granicus.if.org Git - python/commitdiff
Make 'super' subclassable. (Not sure how useful this is yet. :-)
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 04:37:15 +0000 (04:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 04:37:15 +0000 (04:37 +0000)
Objects/typeobject.c

index cd45bafeb991cb29959360291c00f97f3d420c19..559c41b6e82bbf61168e328d842ca942580113c7 100644 (file)
@@ -3259,7 +3259,7 @@ PyTypeObject PySuper_Type = {
        super_getattro,                         /* tp_getattro */
        0,                                      /* tp_setattro */
        0,                                      /* tp_as_buffer */
-       Py_TPFLAGS_DEFAULT,                     /* tp_flags */
+       Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
        super_doc,                              /* tp_doc */
        0,                                      /* tp_traverse */
        0,                                      /* tp_clear */