[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
superseder:  -> Instance methods and WeakRefs don't mix.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Simon Feltman

Simon Feltman added the comment:

Indeed a duplicate of: http://bugs.python.org/issue14631

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
components: +Library (Lib) -None
versions: +Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Mark Dickinson

Mark Dickinson added the comment:

Duplicate of http://bugs.python.org/issue14631 ?

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16452] Add support for weak reference to bound methods

2012-11-11 Thread Simon Feltman

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.

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/

--
components: None
messages: 175337
nosy: sfeltman
priority: normal
severity: normal
status: open
title: Add support for weak reference to bound methods
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com