Author serhiy.storchaka
Recipients Mark.Shannon, corona10, erlendaasland, gvanrossum, serhiy.storchaka, shihai1991, vstinner
Date 2021-04-22.13:21:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619097695.78.0.245947582945.issue43908@roundup.psfhosted.org>
In-reply-to
Content
Is there a full list of types converted to heap types? There may be other issues related to differences between heap and static types.

1. Static type with tp_new = NULL does not have public constructor, but heap type inherits constructor from base class. As result, it allows to create instances without proper initialization, that can lead to crash. It was fixed for few standard heap types in issue23815, then reintroduced, then fixed again in issue42694. But it should be checked for every type without constructor.

2. Static types was not pickleable with protocol 0 and 1 by default. Heap types were pickleable by default, as result, you did not get error when pickle instances of newly converted types, but get an error when try to unpickle. It was fixed in general enough case in issue41052, but it is worth to recheck it for every converted type.
History
Date User Action Args
2021-04-22 13:21:35serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, vstinner, Mark.Shannon, corona10, shihai1991, erlendaasland
2021-04-22 13:21:35serhiy.storchakasetmessageid: <1619097695.78.0.245947582945.issue43908@roundup.psfhosted.org>
2021-04-22 13:21:35serhiy.storchakalinkissue43908 messages
2021-04-22 13:21:35serhiy.storchakacreate