消息 [392291]
IMO, we can drop most (all?) of the huge comment before the check in object_set_class(). History is preserved in the git log. Contrary to Py_TPFLAGS_HEAPTYPE, using Py_TPFLAGS_IMMUTABLETYPE speaks for itself. We might reduce it to just refer to to bpo-43908 and bpo-24912.
Something a la this:
/* Historically, only static types were immutable.
* Py_TPFLAGS_IMMUTABLETYPE was introduced in Python 3.10.
* See bpo-43908 and bpo-24912. */
What do you think? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2021-04-29 08:35:19 | erlendaasland | 修改 | recipients:
+ erlendaasland, gvanrossum, pitrou, vstinner |
| 2021-04-29 08:35:19 | erlendaasland | 修改 | messageid: <1619685319.39.0.839354323973.issue43973@roundup.psfhosted.org> |
| 2021-04-29 08:35:19 | erlendaasland | 链接 | issue43973 messages |
| 2021-04-29 08:35:18 | erlendaasland | 创建 | |
|