Commit 4b8ae85d authored by Guido van Rossum's avatar Guido van Rossum

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.
parent f2287994
......@@ -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 | \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment