➜

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.

作者 vstinner
收信人 erlendaasland, gvanrossum, pitrou, shreyanavigyan, vstinner
日期 2021-04-29.14:17:50
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1619705870.82.0.236859207436.issue43973@roundup.psfhosted.org>
In-reply-to
内容
> IMO, we can drop most (all?) of the huge comment before the check in object_set_class().

I don't think so. I don't understand why it's allowed to override the __class__ attribute of ModuleType instances whereas it's a static type. IMO the long comment remains useful and something should be done later to make the condition more generic, rather than checking PyType_IsSubtype(newto, &PyModule_Type) specifically.
历史
日期 用户 动作 参数
2021-04-29 14:17:50vstinner修改recipients: + vstinner, gvanrossum, pitrou, erlendaasland, shreyanavigyan
2021-04-29 14:17:50vstinner修改messageid: <1619705870.82.0.236859207436.issue43973@roundup.psfhosted.org>
2021-04-29 14:17:50vstinner链接issue43973 messages
2021-04-29 14:17:50vstinner创建