消息 [391600]
> 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) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2021-04-22 13:34:12 | vstinner | 修改 | recipients:
+ vstinner, gvanrossum, Mark.Shannon, serhiy.storchaka, corona10, shihai1991, erlendaasland |
| 2021-04-22 13:34:12 | vstinner | 修改 | messageid: <1619098452.16.0.453539136743.issue43908@roundup.psfhosted.org> |
| 2021-04-22 13:34:12 | vstinner | 链接 | issue43908 messages |
| 2021-04-22 13:34:12 | vstinner | 创建 | |
|