Message362050
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. |
|
Date |
User |
Action |
Args |
2020-02-16 07:53:55 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, nascheme, Yonatan Goldschmidt |
2020-02-16 07:53:55 | serhiy.storchaka | set | messageid: <1581839635.31.0.00757326046815.issue39382@roundup.psfhosted.org> |
2020-02-16 07:53:55 | serhiy.storchaka | link | issue39382 messages |
2020-02-16 07:53:55 | serhiy.storchaka | create | |
|