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: WeakRefSet
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: michael.foord, pitrou
Priority: normal Keywords:

Created on 2010-03-28 11:39 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg101859 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-28 11:39
WeakRefSet would be a useful addition to the weakref module. I needed this for unittest recently but made do with a WeakRefKeyDictionary and setting the values to 1.
msg101878 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-03-28 22:57
Python 3.2a0 (py3k:79464, Mar 27 2010, 19:18:14) 
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from weakref import WeakSet
>>>
msg101881 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-28 23:09
Ha. I tried 2.7. I guess it would be nice if it was backported.
History
Date User Action Args
2022-04-11 14:56:59adminsetgithub: 52498
2010-03-28 23:14:12michael.foordsetstatus: open -> closed
resolution: not a bug
2010-03-28 23:09:42michael.foordsetmessages: + msg101881
versions: - Python 3.2
2010-03-28 22:57:25pitrousetnosy: + pitrou
messages: + msg101878
2010-03-28 11:39:03michael.foordcreate