]> granicus.if.org Git - python/commitdiff
Add new flags for PyType_Ready(): READY to explicitly indicate the
authorGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 17:37:02 +0000 (17:37 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 17:37:02 +0000 (17:37 +0000)
type is ready, and READYING to indicate that it is busy with the type.

A recursive call is a fatal error.

Include/object.h

index f6c6ac699626c756a7a9d8ebda4cbac3a541b4c7..18bc34f31526493164059aa270669d3e37516e93 100644 (file)
@@ -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 | \