/usr/lib64/python2.6/site-packages/cffi
NameSizeModeActions
api.py296720644editdlrm
api.pyc294490644editdlrm
backend_ctypes.py401300644editdlrm
backend_ctypes.pyc458290644editdlrm
cffi_opcode.py53640644editdlrm
cffi_opcode.pyc56610644editdlrm
commontypes.py77250644editdlrm
commontypes.pyc64240644editdlrm
cparser.py287950644editdlrm
cparser.pyc201530644editdlrm
ffiplatform.py37860644editdlrm
ffiplatform.pyc48100644editdlrm
gc_weakref.py6420644editdlrm
gc_weakref.pyc12440644editdlrm
lock.py7470644editdlrm
lock.pyc4470644editdlrm
model.py191160644editdlrm
model.pyc220070644editdlrm
parse_c_type.h54940644editdlrm
recompiler.py507800644editdlrm
recompiler.pyc455770644editdlrm
setuptools_ext.py61580644editdlrm
setuptools_ext.pyc69910644editdlrm
vengine_cpy.py411640644editdlrm
vengine_cpy.pyc377550644editdlrm
vengine_gen.py263350644editdlrm
vengine_gen.pyc246250644editdlrm
verifier.py110580644editdlrm
verifier.pyc114480644editdlrm
_cffi_include.h92610644editdlrm
__init__.py4830644editdlrm
__init__.pyc5360644editdlrm
Edit: /usr/lib64/python2.6/site-packages/cffi/gc_weakref.py (642B)
from weakref import ref class GcWeakrefs(object): def __init__(self, ffi): self.ffi = ffi self.data = {} def build(self, cdata, destructor): # make a new cdata of the same type as the original one new_cdata = self.ffi.cast(self.ffi._backend.typeof(cdata), cdata) # def remove(key): # careful, this function is not protected by any lock old_key = self.data.pop(index) assert old_key is key destructor(cdata) # key = ref(new_cdata, remove) index = object() self.data[index] = key return new_cdata