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 Guido.van.Rossum, Mark.Shannon, christian.heimes, corona10, erlendaasland, gvanrossum, pablogsal, serhiy.storchaka, shihai1991, shreyanavigyan, vstinner
Date 2021-04-30.10:01:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619776881.88.0.696219107591.issue43908@roundup.psfhosted.org>
In-reply-to
Content
Victor:
> check_set_special_type_attr() is used to prevent setting the following attributes:
> [...]
> Right now, I cannot set the attribues on array.array type:
> [...]
> I guess that type_setattro() is used and it checks for Py_TPFLAGS_IMMUTABLETYPE flag early.

Is this always the case? If so, can we turn the check in check_set_special_type_attr() into an assert? In any case, Py_TPFLAGS_IMMUTABLETYPE should be used, not !Py_TPFLAGS_HEAPTYPE.
History
Date User Action Args
2021-04-30 10:01:21erlendaaslandsetrecipients: + erlendaasland, gvanrossum, vstinner, christian.heimes, Mark.Shannon, serhiy.storchaka, Guido.van.Rossum, corona10, pablogsal, shihai1991, shreyanavigyan
2021-04-30 10:01:21erlendaaslandsetmessageid: <1619776881.88.0.696219107591.issue43908@roundup.psfhosted.org>
2021-04-30 10:01:21erlendaaslandlinkissue43908 messages
2021-04-30 10:01:21erlendaaslandcreate