Author serhiy.storchaka
Recipients erlendaasland, pablogsal, serhiy.storchaka, shreyanavigyan, vstinner
Date 2021-04-26.12:10:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619439044.15.0.817595969891.issue43916@roundup.psfhosted.org>
In-reply-to
Content
The explaining comment was added in f884b749103bad0724e2e4878cd5fe49a41bd7df.

The code itself is much older. It was originally added in 6d6c1a35e08b95a83dbe47dbd9e6474daff00354, then
weaked in c11e192d416e2970e6a06cf06d4cf788f322c6ea and strengthen in 29687cd2112c540a8a4d31cf3b191cf10db08412.

All types except static types which are direct descendants of object inherit tp_new from a base class.

We need to check which static types had tp_new = NULL before they were converted to heap types and set it to NULL manually after type creation.
History
Date User Action Args
2021-04-26 12:10:44serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, pablogsal, erlendaasland, shreyanavigyan
2021-04-26 12:10:44serhiy.storchakasetmessageid: <1619439044.15.0.817595969891.issue43916@roundup.psfhosted.org>
2021-04-26 12:10:44serhiy.storchakalinkissue43916 messages
2021-04-26 12:10:44serhiy.storchakacreate