diff Objects/typeobject.c @ 19594:c48654959dc4 legacy-trunk

Make 'super' subclassable. (Not sure how useful this is yet. :-)
author Guido van Rossum <guido@python.org>
date Thu, 30 Aug 2001 04:37:15 +0000
parents 13a93a5dcb1d
children db36e396f043
line wrap: on
line diff
--- a/Objects/typeobject.c	Thu Aug 30 03:12:59 2001 +0000
+++ b/Objects/typeobject.c	Thu Aug 30 04:37:15 2001 +0000
@@ -3259,7 +3259,7 @@
 	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 */