消息 [391582]
FWIW, I was the one who converted arraymodule to use heap types in 75bf107c62fbdc00af51ee4f6ab69df4bd201104 (GH-23124) in January. Sorry 'bout the accidental change of behaviour.
> I think we may need a new flag bit meaning "built-in type, immutable". This bit should not be inherited of course.
+1.
See attached PoC patch. As far as I understand, type flags must be explicitly inherited in Objects/typeobject.c, no?
Should all previous static types be immutable, or are there exceptions? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2021-04-22 08:20:29 | erlendaasland | 修改 | recipients:
+ erlendaasland, gvanrossum, vstinner, Mark.Shannon, corona10, shihai1991 |
| 2021-04-22 08:20:29 | erlendaasland | 修改 | messageid: <1619079629.44.0.248046182528.issue43908@roundup.psfhosted.org> |
| 2021-04-22 08:20:29 | erlendaasland | 链接 | issue43908 messages |
| 2021-04-22 08:20:29 | erlendaasland | 创建 | |
|