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.
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) * (Python committer) | 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 -> closed resolution: duplicate messages: + msg175341 |
| 2012年11月11日 10:00:47 | mark.dickinson | set | components:
+ Library (Lib), - None versions: + 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.dickinson messages: + msg175338 |
| 2012年11月11日 09:56:06 | sfeltman | create | |