Message391600
| Author |
vstinner |
| Recipients |
Mark.Shannon, corona10, erlendaasland, gvanrossum, serhiy.storchaka, shihai1991, vstinner |
| Date |
2021年04月22日.13:34:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1619098452.16.0.453539136743.issue43908@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> Maybe name it Py_TPFLAGS_IMMUTABLETYPE?
"TPFLAGS" stands for "type flags". So IMO adding "TYPE" suffix is redundant. If tomorrow, we want to add a flag for immutable instance, we can add a new Py_TPFLAGS_IMMUTABLE_INSTANCE flag.
On the other side, TYPE suffix is consistent with other flags :-)
/* Set if the type object is dynamically allocated */
#define Py_TPFLAGS_HEAPTYPE (1UL << 9)
/* Set if the type allows subclassing */
#define Py_TPFLAGS_BASETYPE (1UL << 10) |
|