]> granicus.if.org Git - python/commitdiff
Make getset subclassable.
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 03:10:36 +0000 (03:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 03:10:36 +0000 (03:10 +0000)
Objects/descrobject.c

index 4971b4c07c0db772702db655d02dc1fe7c780e28..0324ac2a6d204f9c1f704a4333257154ff7afbbf 100644 (file)
@@ -975,7 +975,7 @@ PyTypeObject PyGetSet_Type = {
        PyObject_GenericGetAttr,                /* tp_getattro */
        0,                                      /* tp_setattro */
        0,                                      /* tp_as_buffer */
-       Py_TPFLAGS_DEFAULT,                     /* tp_flags */
+       Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
        getset_doc,                             /* tp_doc */
        0,                                      /* tp_traverse */
        0,                                      /* tp_clear */