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 ryan.a.heisler
Recipients docs@python, ryan.a.heisler, tim.peters
Date 2021-01-17.05:08:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610860121.95.0.190572353106.issue42945@roundup.psfhosted.org>
In-reply-to
Content
Perfect, thanks for your quick response. I was passing a bound method of obj as the func to `weakref.finalize(obj, func, /, *args, **kwargs)`. It slipped my mind that an instance variable like self.name and a bound method like self.clean_up, though they both belong to self, would be evaluated differently.

For anyone wondering, I was looking for weakref.proxy (https://docs.python.org/3/library/weakref.html#weakref.proxy) or weakref.WeakMethod (https://docs.python.org/3/library/weakref.html#weakref.WeakMethod)
History
Date User Action Args
2021-01-17 05:08:41ryan.a.heislersetrecipients: + ryan.a.heisler, tim.peters, docs@python
2021-01-17 05:08:41ryan.a.heislersetmessageid: <1610860121.95.0.190572353106.issue42945@roundup.psfhosted.org>
2021-01-17 05:08:41ryan.a.heislerlinkissue42945 messages
2021-01-17 05:08:41ryan.a.heislercreate