def __init__(self, dict=None):
        self.data = {}
        def remove(k, selfref=ref(self)):
            self = selfref()
            if self is not None:
                try:
                    del self.data[k]
                except __HOLE__:
                    pass
        self._remove = remove
        if dict is not None: self.update(dict)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/weakref.py/WeakKeyDictionary.__init__