diff options
author | Armin Rigo <arigo@tunes.org> | 2014-01-30 12:18:34 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2014-01-30 12:18:34 +0100 |
commit | 27bcab447f7e3717f6ff667b9e7f3574b78c33bd (patch) | |
tree | 1185be0c432374ecab30c9d29d1a1a941ded78c8 /pypy/module/_weakref | |
parent | Bah? Attribute never needed (diff) | |
download | pypy-27bcab447f7e3717f6ff667b9e7f3574b78c33bd.tar.gz pypy-27bcab447f7e3717f6ff667b9e7f3574b78c33bd.tar.bz2 pypy-27bcab447f7e3717f6ff667b9e7f3574b78c33bd.zip |
Moved the "weak list" logic out of _cffi_backend/handle.py.
Use it in module/_io/interp_iobase.py. This should fix the
issue #1683.
Diffstat (limited to 'pypy/module/_weakref')
-rw-r--r-- | pypy/module/_weakref/interp__weakref.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pypy/module/_weakref/interp__weakref.py b/pypy/module/_weakref/interp__weakref.py index a4d6a307b2..e3b161949a 100644 --- a/pypy/module/_weakref/interp__weakref.py +++ b/pypy/module/_weakref/interp__weakref.py @@ -6,6 +6,7 @@ from pypy.interpreter.typedef import TypeDef from rpython.rlib import jit from rpython.rlib.rshrinklist import AbstractShrinkList from rpython.rlib.objectmodel import specialize +from rpython.rlib.rweakref import dead_ref import weakref @@ -144,14 +145,6 @@ class WeakrefLifelineWithCallbacks(WeakrefLifeline): # ____________________________________________________________ -class Dummy: - pass -dead_ref = weakref.ref(Dummy()) -for i in range(5): - if dead_ref() is not None: - import gc; gc.collect() -assert dead_ref() is None - class W_WeakrefBase(W_Root): def __init__(w_self, space, w_obj, w_callable): |