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.

Author david_abrahams
Recipients
Date 2002-02-09.00:50:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I want to be able to create a subtype of weakref.

Motivation: I use a trick to non-intrusively keep one 
Python object (ward) alive as long as another one 
(custodian) is: I build a weak reference to the 
custodian whose kill function object holds a reference 
to the ward. I "leak" the weakref, but the function 
decrements its refcount so it will eventually die. 
This scheme costs an extra allocation for the function 
object, and because there is a function object at all, 
there's no opportunity to re-use the weakref (please 
document this part of the re-use behavior, BTW!)

I also want the re-use algorithm to check for object 
and type equality so that I can avoid creating 
multiple such references.
History
Date User Action Args
2008-01-20 09:59:18adminlinkissue515073 messages
2008-01-20 09:59:18admincreate