Home
last modified time | relevance | path

Searched refs:weakref (Results 1 - 25 of 100) sorted by relevance

1234

/third_party/python/Lib/test/
H A Dtest_weakref.py6 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 Dtest_finalization.py8 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 Dtest_threading_local.py7 import weakref namespace
25 weaklist.append(weakref.ref(weak))
195 wr = weakref.ref(x)
H A Dtest_frame.py8 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 Dtest_picklebuffer.py8 import weakref namespace
71 wpb = weakref.ref(pb)
H A Dtest_pickle.py10 import weakref namespace
136 r = weakref.ref(pickler)
172 table_ref = weakref.ref(table)
188 r = weakref.ref(unpickler)
H A Dtest_gc.py16 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 Dtest_thread.py8 import weakref namespace
133 wr = weakref.ref(task, lambda _: done.append(None))
H A Dtest_slice.py7 import weakref namespace
287 w = weakref.ref(o)
/third_party/python/Lib/test/crashers/
H A Dmutation_inside_cyclegc.py4 # 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__.py22 import weakref namespace
39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/third_party/python/Lib/unittest/
H A Dsignals.py2 import weakref namespace
41 _results = weakref.WeakKeyDictionary()
/third_party/python/Lib/
H A Dcopy.py52 import weakref namespace
112 types.FunctionType, weakref.ref):
198 d[weakref.ref] = _deepcopy_atomic
304 del types, weakref, PyStringMap
H A Dweakref.py40 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 Dsymtable.py8 import weakref namespace
23 self.__memo = weakref.WeakValueDictionary()
/third_party/python/Lib/concurrent/futures/
H A Dthread.py13 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 Dutil.py13 import weakref namespace
159 _afterfork_registry = weakref.WeakValueDictionary()
193 self._weakref = weakref.ref(obj, self)
H A Dsharedctypes.py11 import weakref namespace
174 class_cache = weakref.WeakKeyDictionary()
/third_party/python/Lib/unittest/test/
H A Dtest_break.py6 import weakref namespace
27 unittest.signals._results = weakref.WeakKeyDictionary()
187 ref = weakref.ref(result)
/third_party/python/Lib/test/test_importlib/
H A Dtest_locks.py8 import weakref namespace
129 wr = weakref.ref(lock)
/third_party/python/Lib/test/libregrtest/
H A Drefleak.py12 import weakref namespace
17 registry_weakrefs = set(weakref.ref(obj) for obj in cls._abc_registry)
/third_party/python/Lib/xml/sax/
H A Dexpatreader.py42 import weakref namespace
43 _mkproxy = weakref.proxy
44 del weakref, _weakref
/third_party/node/deps/v8/third_party/jinja2/
H A Dloaders.py7 import weakref namespace
469 sys.modules[package_name] = weakref.proxy(
/third_party/node/tools/inspector_protocol/jinja2/
H A Dloaders.py13 import weakref namespace
448 sys.modules[package_name] = weakref.proxy(mod,
/third_party/skia/third_party/externals/jinja2/
H A Dloaders.py7 import weakref namespace
469 sys.modules[package_name] = weakref.proxy(

Completed in 14 milliseconds

1234