diff options
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index cffe72c..4c06999 100644 --- a/Include/object.h +++ b/Include/object.h @@ -327,6 +327,10 @@ given type object has a specified feature. #define Py_TPFLAGS_MAPPING (1 << 6) #endif +/* Disallow creating instances of the type: set tp_new to NULL and don't create + * the "__new__" key in the type dictionary. */ +#define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7) + /* Set if the type object is immutable: type attributes cannot be set nor deleted */ #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8) |