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.

classification
Title: Add support for weak-keyed dictionaries
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: fdrake, loewis
Priority: high Keywords: patch

Created on 2001-02-24 07:52 by loewis, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
None loewis, 2001-02-24 07:52 None
Messages (5)
msg35858 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2001-02-24 07:52
This patch adds a parameter weakkeys to weakref.mapping. To allow weak references as dictionary keys, they cache their hash value and support equality.
msg35859 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-02-26 19:12
Logged In: YES 
user_id=3066

I'll take a look at this (and some other patches) later
today.
msg35860 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-02-27 18:07
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!
msg35861 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-02-27 18:17
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
msg35862 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2001-02-27 18:40
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.
History
Date User Action Args
2022-04-10 16:03:47adminsetgithub: 34000
2001-02-24 07:52:09loewiscreate