This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients Mark.Shannon, corona10, erlendaasland, gvanrossum, shihai1991, vstinner
Date 2021-04-22.08:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619079629.44.0.248046182528.issue43908@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-04-22 08:20:29erlendaaslandsetrecipients: + erlendaasland, gvanrossum, vstinner, Mark.Shannon, corona10, shihai1991
2021-04-22 08:20:29erlendaaslandsetmessageid: <1619079629.44.0.248046182528.issue43908@roundup.psfhosted.org>
2021-04-22 08:20:29erlendaaslandlinkissue43908 messages
2021-04-22 08:20:29erlendaaslandcreate