Author sfeltman
Recipients sfeltman
Date 2012-11-11.09:56:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352627766.58.0.403468077196.issue16452@psf.upfronthosting.co.za>
In-reply-to
Content
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.

See also:
http://bugs.python.org/issue813299
http://bugs.python.org/issue7464

This is the recipes:
http://code.activestate.com/recipes/81253/
http://mindtrove.info/python-weak-references/
History
Date User Action Args
2012-11-11 09:56:06sfeltmansetrecipients: + sfeltman
2012-11-11 09:56:06sfeltmansetmessageid: <1352627766.58.0.403468077196.issue16452@psf.upfronthosting.co.za>
2012-11-11 09:56:06sfeltmanlinkissue16452 messages
2012-11-11 09:56:05sfeltmancreate