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 methane
Recipients JelleZijlstra, docs@python, malthe, methane, potiuk, rhettinger
Date 2022-03-07.04:28:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don't know much about Java, but Java's WeakHashMap is same to Python's WeakKeyDictionary.

This class is intended primarily for use with key objects whose equals methods test for object identity using the == operator. Once such a key is discarded it can never be recreated, so it is impossible to do a lookup of that key in a WeakHashMap at some later time and be surprised that its entry has been removed. This class will work perfectly well with key objects whose equals methods are not based upon object identity, such as String instances. With such recreatable key objects, however, the automatic removal of WeakHashMap entries whose keys have been discarded may prove to be confusing.
Date User Action Args
2022-03-07 04:28:25methanesetrecipients: + methane, rhettinger, docs@python, malthe, JelleZijlstra, potiuk
2022-03-07 04:28:25methanesetmessageid: <>
2022-03-07 04:28:25methanelinkissue46925 messages
2022-03-07 04:28:25methanecreate