Home | History | Annotate | Download | only in python2.7

Lines Matching refs:ref

9 # they are called this instead of "ref" to avoid name collisions with
10 # the module-global ref() function imported from _weakref.
17 ref,
30 __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
48 def remove(wr, selfref=ref(self)):
211 class KeyedRef(ref):
224 self = ref.__new__(type, ob, callback)
245 def remove(k, selfref=ref(self)):
253 del self.data[ref(key)]
256 return self.data[ref(key)]
262 self.data[ref(key, self._remove)] = value
284 return self.data.get(ref(key),default)
288 wr = ref(key)
295 wr = ref(key)
366 return self.data.pop(ref(key), *args)
369 return self.data.setdefault(ref(key, self._remove),default)
377 d[ref(key, self._remove)] = value