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-17.00:52:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=52572

I wouldn't want to use WeakKeyDictionary directly for this, 
since I'm using it in a fairly time-critical place in C++ 
code. I could do the same thing with a proper subtype of 
dictionary using C++ code, and that's fine if you have a 
guarantee that a custodian has only one ward. Otherwise you 
need to use a collection of wards as the value, which again 
costs an extra allocation for the common case where a 
custodian really does have only one ward. Yes, it would be 
amortized over the number of wards for any custodian, but 
as I say the common case will have one ward per custodian. 
So I'd still really like to have weakref subclassing.
History
Date User Action Args
2008-01-20 09:59:18adminlinkissue515073 messages
2008-01-20 09:59:18admincreate