[New-bugs-announce] [issue16452] Add support for weak reference to bound methods
report at bugs.python.org
Sun Nov 11 10:56:06 CET 2012
New submission from Simon Feltman:
This is a feature request to include a "WeakMethod" or similar object to the weakref module. The object decomposes a bound method and holds a weakref to the object and unbound function. This can be a very useful utility in signal and ui based programming.
The issue has come up a few times but I was unable to find a bug specifically requesting this feature. I think similar code has shown up in enough libraries at this point that it makes sense to just include it in pythons weakref module.
This is the recipes:
title: Add support for weak reference to bound methods
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce