[Patches] [ python-Patches-403985 ] Add support for weak-keyed dictionaries

nobody nobody@sourceforge.net
Tue, 27 Feb 2001 10:40:46 -0800


Patches #403985, was updated on 2001-02-23 23:52
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403985&group_id=5470

Category: Modules
Group: None
Status: Closed
Priority: 7
Submitted By: Martin v. Löwis
Assigned to: Martin v. Löwis
Summary: Add support for weak-keyed dictionaries

Initial Comment:
This patch adds a parameter weakkeys to weakref.mapping. To allow weak references as dictionary keys, they cache their hash value and support equality.

----------------------------------------------------------------------

Comment By: Martin v. Löwis
Date: 2001-02-27 10:40

Message:
Logged In: YES 
user_id=21627

Committed weakkeys.patch-2 as 1.2 of test_weakref.py and
output/test_weakref, 1.3 of libweakref.tex, 1.4 of
weakref.py, and 1.7 of _weakref.c.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-02-27 10:17

Message:
Logged In: YES 
user_id=3066

(Sigh...) Updating the patch here doesn't seem to be
working.  I've placed the revised patch here:

http://starship.python.net/crew/fdrake/patches/weakkeys.patch-2


----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-02-27 10:07

Message:
Logged In: YES 
user_id=3066

Modified the patch slightly, adding some small documentation
revisions and changing the name of WeakDictionary to
WeakValueDictionary.

Martin, if you're still happy with this after my changes,
please feel free to check it in.

Thanks!

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-02-26 11:12

Message:
Logged In: YES 
user_id=3066

I'll take a look at this (and some other patches) later
today.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403985&group_id=5470