From: Guido van Rossum Date: Fri, 10 Aug 2001 17:37:02 +0000 (+0000) Subject: Add new flags for PyType_Ready(): READY to explicitly indicate the X-Git-Tag: v2.2a3~677 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b9c972abeed3f2d5fa50a98fed44b51103b3796;p=python 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. --- diff --git a/Include/object.h b/Include/object.h index f6c6ac6996..18bc34f315 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 | \