From 31bcff8815f263ab25ac9458f7b45975d8ebecbc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 30 Aug 2001 04:37:15 +0000 Subject: [PATCH] Make 'super' subclassable. (Not sure how useful this is yet. :-) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index cd45bafeb9..559c41b6e8 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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 */ -- 2.40.0