[pypy-issue] [issue1269] weakref.WeakSet does not work correctly

Alexey Poryadin tracker at bugs.pypy.org
Thu Sep 27 08:55:57 CEST 2012


New submission from Alexey Poryadin <alexey.poryadin at gmail.com>:

WeakSet works incorrectly, try sample below:

from weakref import WeakSet
class Obj(object): pass

o1 = Obj()
o2 = Obj()
ws = WeakSet([o1, o2])
del o2
assert len(tuple(ws))==1

----------
messages: 4783
nosy: alesh, pypy-issue
priority: bug
status: unread
title: weakref.WeakSet does not work correctly

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1269>
________________________________________


More information about the pypy-issue mailing list