[pypy-issue] [issue1353] Weakrefs to builtin types sometimes don't work

Ram Rachum tracker at bugs.pypy.org
Tue Dec 25 13:24:37 CET 2012


New submission from Ram Rachum <ram at rachum.com>:

See the attached file. When run in Python, it runs fine. When run in Pypy 2.0b, 
an AssertionError is raised.

----------
files: weakref_weirdness.py
messages: 5104
nosy: cool-RR, pypy-issue
priority: bug
release: 2.0
status: unread
title: Weakrefs to builtin types sometimes don't work

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1353>
________________________________________
-------------- next part --------------
import gc
import weakref
w=weakref.ref(list)
gc.collect(); gc.collect(); gc.collect()
assert w() == list


More information about the pypy-issue mailing list