/usr/lib64/python2.6/site-packages/mx/Proxy/mxProxy
NameSizeModeActions
mxProxy.so372000644editdlrm
test.py18250644editdlrm
test.pyc17630644editdlrm
test.pyo17470644editdlrm
testvlad.py940644editdlrm
testvlad.pyc2820644editdlrm
testvlad.pyo2820644editdlrm
weakreftest.py5180644editdlrm
weakreftest.pyc13360644editdlrm
weakreftest.pyo13360644editdlrm
__init__.py3460644editdlrm
__init__.pyc5420644editdlrm
__init__.pyo5420644editdlrm
Edit: /usr/lib64/python2.6/site-packages/mx/Proxy/mxProxy/weakreftest.py (518B)
import sys import mx.Proxy class Object: def __init__(self, id): self.id = id def __del__(self): print self.id, 'deleted' def __repr__(self): return '' % (self.id, id(self), id(self)) def test(): x = Object('first') x.y = Object('second') x.y.x = mx.Proxy.WeakProxy(x) test() # if I uncomment the following, everything works as expected, which suggests # to me that either the WeakReferences dictionary is not getting GC'd #y = x.y #del x #print y.x.id