/third_party/python/Lib/test/ |
H A D | test_weakref.py | 6 import weakref namespace 113 wr = weakref.ref(o) 125 obj_weakref = weakref.ref(obj) 140 wr = weakref.ref(f) 149 ref1 = weakref.ref(o, self.callback) 150 ref2 = weakref.ref(o, self.callback) 172 self.ref = weakref.ref(c, callback) 173 ref1 = weakref.ref(c, callback) 178 self.assertRaises(TypeError, weakref.ref, c, callback=None) 183 ref1 = weakref [all...] |
H A D | test_finalization.py | 8 import weakref namespace 172 wr = weakref.ref(s) 186 wr = weakref.ref(s) 263 wr = weakref.ref(s) 278 wr = weakref.ref(s) 299 wr = weakref.ref(s) 370 wrs = [weakref.ref(s) for s in nodes] 386 wrs = [weakref.ref(s) for s in nodes] 488 wr = weakref.ref(s) 503 wr = weakref [all...] |
H A D | test_threading_local.py | 7 import weakref namespace 25 weaklist.append(weakref.ref(weak)) 195 wr = weakref.ref(x)
|
H A D | test_frame.py | 8 import weakref namespace 42 wr = weakref.ref(c) 143 wr = weakref.ref(c) 311 # likely be a trace function, weakref callback, or finalizer.
|
H A D | test_picklebuffer.py | 8 import weakref namespace 71 wpb = weakref.ref(pb)
|
H A D | test_pickle.py | 10 import weakref namespace 136 r = weakref.ref(pickler) 172 table_ref = weakref.ref(table) 188 r = weakref.ref(unpickler)
|
H A D | test_gc.py | 16 import weakref namespace 57 self.wr = weakref.ref(C1055820(666), it_happened) 235 import weakref 256 # 5. Create a weakref to `func` now. If we had created 259 self[1].ref = weakref.ref(self[0]) 683 WRs = [weakref.ref(c, callback) for c in Cs] 1063 # WZ is a weakref to Z with callback C 1078 # trash. Normally, handle_weakrefs() would find the weakref via Z and 1096 a.wz = weakref.ref(a.y.value, callback) 1106 # if called, it means there is a bug in the GC. The weakref shoul [all...] |
H A D | test_thread.py | 8 import weakref namespace 133 wr = weakref.ref(task, lambda _: done.append(None))
|
H A D | test_slice.py | 7 import weakref namespace 287 w = weakref.ref(o)
|
/third_party/python/Lib/test/crashers/ |
H A D | mutation_inside_cyclegc.py | 4 # Moreover, it can invoke arbitrary Python code via a weakref callback. 13 import weakref namespace 28 keepalive.append(weakref.ref(a, callback))
|
/third_party/python/Lib/multiprocessing/dummy/ |
H A D | __init__.py | 22 import weakref namespace 39 self._children = weakref.WeakKeyDictionary() 66 current_process()._children = weakref.WeakKeyDictionary()
|
/third_party/python/Lib/unittest/ |
H A D | signals.py | 2 import weakref namespace 41 _results = weakref.WeakKeyDictionary()
|
/third_party/python/Lib/ |
H A D | copy.py | 52 import weakref namespace 112 types.FunctionType, weakref.ref): 198 d[weakref.ref] = _deepcopy_atomic 304 del types, weakref, PyStringMap
|
H A D | weakref.py | 40 A custom `weakref.ref` subclass which simulates a weak reference to 54 # The self-weakref trick is needed to avoid creating a reference 389 # because a dead weakref never compares equal to a live weakref, 566 __slots__ = ("weakref", "func", "args", "kwargs", "atexit", "index") 576 info.weakref = ref(obj, self) 596 obj = info and info.weakref() 604 obj = info and info.weakref() 627 obj = info and info.weakref()
|
H A D | symtable.py | 8 import weakref namespace 23 self.__memo = weakref.WeakValueDictionary()
|
/third_party/python/Lib/concurrent/futures/ |
H A D | thread.py | 13 import weakref namespace 17 _threads_queues = weakref.WeakKeyDictionary() 185 # When the executor gets lost, the weakref callback will wake up 195 args=(weakref.ref(self, weakref_cb),
|
/third_party/python/Lib/multiprocessing/ |
H A D | util.py | 13 import weakref namespace 159 _afterfork_registry = weakref.WeakValueDictionary() 193 self._weakref = weakref.ref(obj, self)
|
H A D | sharedctypes.py | 11 import weakref namespace 174 class_cache = weakref.WeakKeyDictionary()
|
/third_party/python/Lib/unittest/test/ |
H A D | test_break.py | 6 import weakref namespace 27 unittest.signals._results = weakref.WeakKeyDictionary() 187 ref = weakref.ref(result)
|
/third_party/python/Lib/test/test_importlib/ |
H A D | test_locks.py | 8 import weakref namespace 129 wr = weakref.ref(lock)
|
/third_party/python/Lib/test/libregrtest/ |
H A D | refleak.py | 12 import weakref namespace 17 registry_weakrefs = set(weakref.ref(obj) for obj in cls._abc_registry)
|
/third_party/python/Lib/xml/sax/ |
H A D | expatreader.py | 42 import weakref namespace 43 _mkproxy = weakref.proxy 44 del weakref, _weakref
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | loaders.py | 7 import weakref namespace 469 sys.modules[package_name] = weakref.proxy(
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | loaders.py | 13 import weakref namespace 448 sys.modules[package_name] = weakref.proxy(mod,
|
/third_party/skia/third_party/externals/jinja2/ |
H A D | loaders.py | 7 import weakref namespace 469 sys.modules[package_name] = weakref.proxy(
|