Issue 16452: Add support for weak reference to bound methods (original) (raw)
Issue16452
Created on 2012-11-11 09:56 by sfeltman, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg175337 - (view) | Author: Simon Feltman (sfeltman) | Date: 2012-11-11 09:56 |
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/ | ||
msg175338 - (view) | Author: Mark Dickinson (mark.dickinson) * ![]() |
Date: 2012-11-11 09:59 |
Duplicate of http://bugs.python.org/issue14631 ? | ||
msg175341 - (view) | Author: Simon Feltman (sfeltman) | Date: 2012-11-11 10:08 |
Indeed a duplicate of: http://bugs.python.org/issue14631 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:38 | admin | set | github: 60656 |
2012-11-11 10:19:04 | mark.dickinson | set | superseder: Instance methods and WeakRefs don't mix. |
2012-11-11 10:08:52 | sfeltman | set | status: open -> closedresolution: duplicatemessages: + |
2012-11-11 10:00:47 | mark.dickinson | set | components: + Library (Lib), - Noneversions: + Python 3.4 |
2012-11-11 10:00:31 | mark.dickinson | set | stage: needs patch |
2012-11-11 09:59:59 | mark.dickinson | set | nosy: + mark.dickinsonmessages: + |
2012-11-11 09:56:06 | sfeltman | create |