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.

Author bup
Recipients bup
Date 2021-02-27.18:37:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614451045.31.0.00161523259974.issue43341@roundup.psfhosted.org>
In-reply-to
Content
The only way to lookup weak references to functools.partial objects is with weakref.getweakrefs. I don't know if it's normal for extension types that define tp_weaklistoffset to not add a __weakref__ descriptor, but I figured at the very least a subtype specifying "__weakref__" in its __slots__ could get one. Instead, it fails with the partially true TypeError: __weakref__ slot disallowed: either we already got one, or __itemsize__ != 0.
History
Date User Action Args
2021-02-27 18:37:25bupsetrecipients: + bup
2021-02-27 18:37:25bupsetmessageid: <1614451045.31.0.00161523259974.issue43341@roundup.psfhosted.org>
2021-02-27 18:37:25buplinkissue43341 messages
2021-02-27 18:37:24bupcreate