Message387781
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. |
|
Date |
User |
Action |
Args |
2021-02-27 18:37:25 | bup | set | recipients:
+ bup |
2021-02-27 18:37:25 | bup | set | messageid: <1614451045.31.0.00161523259974.issue43341@roundup.psfhosted.org> |
2021-02-27 18:37:25 | bup | link | issue43341 messages |
2021-02-27 18:37:24 | bup | create | |
|