[Python-checkins] CVS: python/dist/src/Include object.h,2.79.2.15,2.79.2.16
Guido van Rossum
gvanrossum@users.sourceforge.net
Sun, 17 Jun 2001 16:13:42 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv28752
Modified Files:
Tag: descr-branch
object.h
Log Message:
Add a new flag, Py_TPFLAGS_BASETYPE, that must be set in a type that
supports subtyping. This makes more sense than requiring that tp_init
is set.
Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.79.2.15
retrieving revision 2.79.2.16
diff -C2 -r2.79.2.15 -r2.79.2.16
*** object.h 2001/06/16 14:41:40 2.79.2.15
--- object.h 2001/06/17 23:13:39 2.79.2.16
***************
*** 401,404 ****
--- 401,407 ----
#define Py_TPFLAGS_HEAPTYPE (1L<<9)
+ /* Set if the type allows subclassing */
+ #define Py_TPFLAGS_BASETYPE (1L<<10)
+
#define Py_TPFLAGS_DEFAULT ( \
Py_TPFLAGS_HAVE_GETCHARBUFFER | \