X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/site-packages/cffi
usr
/
lib64
/
python2.7
/
site-packages
/
cffi
/
📁
..
📄
__init__.py
(483 B)
📄
__init__.pyc
(541 B)
📄
__init__.pyo
(541 B)
📄
_cffi_include.h
(9.78 KB)
📄
_embedding.h
(16.84 KB)
📄
api.py
(36.75 KB)
📄
api.pyc
(35.77 KB)
📄
api.pyo
(35.56 KB)
📄
backend_ctypes.py
(39.19 KB)
📄
backend_ctypes.pyc
(44.31 KB)
📄
backend_ctypes.pyo
(43.94 KB)
📄
cffi_opcode.py
(5.35 KB)
📄
cffi_opcode.pyc
(5.63 KB)
📄
cffi_opcode.pyo
(5.57 KB)
📄
commontypes.py
(2.47 KB)
📄
commontypes.pyc
(2.21 KB)
📄
commontypes.pyo
(2.14 KB)
📄
cparser.py
(36.2 KB)
📄
cparser.pyc
(23.81 KB)
📄
cparser.pyo
(23.63 KB)
📄
ffiplatform.py
(3.64 KB)
📄
ffiplatform.pyc
(4.61 KB)
📄
ffiplatform.pyo
(4.61 KB)
📄
gc_weakref.py
(642 B)
📄
gc_weakref.pyc
(1.21 KB)
📄
gc_weakref.pyo
(1.17 KB)
📄
lock.py
(747 B)
📄
lock.pyc
(441 B)
📄
lock.pyo
(441 B)
📄
model.py
(20.62 KB)
📄
model.pyc
(23.04 KB)
📄
model.pyo
(22.84 KB)
📄
parse_c_type.h
(5.7 KB)
📄
recompiler.py
(59.29 KB)
📄
recompiler.pyc
(52.37 KB)
📄
recompiler.pyo
(51.63 KB)
📄
setuptools_ext.py
(6.01 KB)
📄
setuptools_ext.pyc
(6.73 KB)
📄
setuptools_ext.pyo
(6.69 KB)
📄
vengine_cpy.py
(40.4 KB)
📄
vengine_cpy.pyc
(36.72 KB)
📄
vengine_cpy.pyo
(36.39 KB)
📄
vengine_gen.py
(26.01 KB)
📄
vengine_gen.pyc
(24.02 KB)
📄
vengine_gen.pyo
(23.64 KB)
📄
verifier.py
(11.25 KB)
📄
verifier.pyc
(11.15 KB)
📄
verifier.pyo
(11.11 KB)
Editing: gc_weakref.py
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
Upload File
Create Folder