summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-10 17:37:02 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-10 17:37:02 (GMT)
commit9b9c972abeed3f2d5fa50a98fed44b51103b3796 (patch)
tree847af26b4ae55b5cf706a0e0ad27ad9662464f0a /Include/object.h
parent6d8d72b0cb26b9d7ccb7e264046cf531a86d0c66 (diff)
downloadcpython-9b9c972abeed3f2d5fa50a98fed44b51103b3796.zip
cpython-9b9c972abeed3f2d5fa50a98fed44b51103b3796.tar.gz
cpython-9b9c972abeed3f2d5fa50a98fed44b51103b3796.tar.bz2
Add new flags for PyType_Ready(): READY to explicitly indicate the
type is ready, and READYING to indicate that it is busy with the type. A recursive call is a fatal error.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index f6c6ac6..18bc34f 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -414,6 +414,12 @@ given type object has a specified feature.
/* Set if the type's __dict__ may change */
#define Py_TPFLAGS_DYNAMICTYPE (1L<<11)
+/* Set if the type is 'ready' -- fully initialized */
+#define Py_TPFLAGS_READY (1L<<12)
+
+/* Set while the type is being 'readied', to prevent recursive ready calls */
+#define Py_TPFLAGS_READYING (1L<<13)
+
#define Py_TPFLAGS_DEFAULT ( \
Py_TPFLAGS_HAVE_GETCHARBUFFER | \
Py_TPFLAGS_HAVE_SEQUENCE_IN | \