Author serhiy.storchaka
Recipients Yonatan Goldschmidt, nascheme, serhiy.storchaka
Date 2020-02-16.07:53:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581839635.31.0.00757326046815.issue39382@roundup.psfhosted.org>
In-reply-to
Content
Thank you for your report and patch. Agree that the code does not look safe. Do you mind to create a pull request?

Would be nice to add a test for it. The three references to the Python class are:

* the __dict__ descriptor
* the __weakref__ descriptor
* the __mro__ tuple

You can get rid of the first two by setting __slots__ = () in the class definition. But it is not so easy with the __mro__ tuple. I will try more.
History
Date User Action Args
2020-02-16 07:53:55serhiy.storchakasetrecipients: + serhiy.storchaka, nascheme, Yonatan Goldschmidt
2020-02-16 07:53:55serhiy.storchakasetmessageid: <1581839635.31.0.00757326046815.issue39382@roundup.psfhosted.org>
2020-02-16 07:53:55serhiy.storchakalinkissue39382 messages
2020-02-16 07:53:55serhiy.storchakacreate