Home
last modified time | relevance | path

Searched refs:weakref (Results 1 – 25 of 39) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_weakref.py5 import weakref
56 wr = weakref.ref(o)
70 ref1 = weakref.ref(o, self.callback)
71 ref2 = weakref.ref(o, self.callback)
94 self.ref = weakref.ref(c, callback)
95 ref1 = weakref.ref(c, callback)
101 ref1 = weakref.proxy(o, self.callback)
102 ref2 = weakref.proxy(o, self.callback)
108 self.assertRaises(weakref.ReferenceError, check, ref1)
109 self.assertRaises(weakref.ReferenceError, check, ref2)
[all …]
Dtest_code.py84 import weakref
132 coderef = weakref.ref(f.__code__, callback)
Dtest_gc.py5 import weakref
32 self.wr = weakref.ref(C1055820(666), it_happened)
457 WRs = [weakref.ref(c, callback) for c in Cs]
493 c2wr = weakref.ref(c2) # no callback!
500 c0wr = weakref.ref(c0, callback)
569 c2wr = weakref.ref(c2) # no callback!
Dtest_threading_local.py4 import weakref
19 weaklist.append(weakref.ref(weak))
201 wr = weakref.ref(x)
Dtest_thread.py8 import weakref
127 wr = weakref.ref(task, lambda _: done.append(None))
Dtest_copy.py5 import weakref
613 x = weakref.ref(obj)
647 self._check_copy_weakdict(weakref.WeakKeyDictionary)
650 self._check_copy_weakdict(weakref.WeakValueDictionary)
657 u = weakref.WeakKeyDictionary()
676 u = weakref.WeakValueDictionary()
Dtest_threading.py12 import weakref
402 weak_cyclic_object = weakref.ref(cyclic_object)
410 weak_raising_cyclic_object = weakref.ref(raising_cyclic_object)
Dtest_abc.py6 import unittest, weakref
221 r = weakref.ref(C)
Dtest_memoryview.py9 import weakref
228 wr = weakref.ref(o)
Dtest_sys.py753 import weakref
754 check(weakref.ref(int), size(h + '2Pl2P'))
758 check(weakref.proxy(int), size(h + '2Pl2P'))
Dtest_deque.py5 import weakref
510 ref = weakref.ref(obj)
630 p = weakref.proxy(d)
Dtest_dict.py5 import gc, weakref
545 ref = weakref.ref(obj)
Dtest_file.py10 from weakref import proxy
Dtest_fileio.py10 from weakref import proxy
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgc_weakref.txt4 The basic rule for dealing with weakref callbacks (and __del__ methods too,
23 attached to a reachable weakref W to an unreachable object O. Since O is
40 The primary thing it missed is that when a weakref to a piece of cyclic
42 materializing a strong reference to that weakref's CT referent, and so
45 weakref callback or __del__ method does something nasty on purpose: as
98 [That missed that, in addition, a weakref to CT can exist outside CT, and
99 any callback into Python can use such a non-CT weakref to resurrect its CT
108 [Except that a non-CT callback can also use a non-CT weakref to get at
111 More, if the callback itself is in cyclic trash, then the weakref to which
113 reason: if the weakref acted as an external root, then the callback could
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
Dmutation_inside_cyclegc.py13 import weakref
28 keepalive.append(weakref.ref(a, callback))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Dconnection.c238 PyObject* weakref; in pysqlite_do_all_statements() local
243 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements()
244 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
256 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements()
257 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
303 PyObject* weakref; in pysqlite_connection_register_cursor() local
305 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor()
306 if (!weakref) { in pysqlite_connection_register_cursor()
310 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
311 Py_CLEAR(weakref); in pysqlite_connection_register_cursor()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dsignals.py2 import weakref
27 _results = weakref.WeakKeyDictionary()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_break.py5 import weakref
24 unittest.signals._results = weakref.WeakKeyDictionary()
157 ref = weakref.ref(result)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
Dexpatreader.py42 import weakref
43 _mkproxy = weakref.proxy
44 del weakref, _weakref
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcopy.py52 import weakref
106 types.FunctionType, weakref.ref):
224 d[weakref.ref] = _deepcopy_atomic
Dsymtable.py8 import weakref
21 self.__memo = weakref.WeakValueDictionary()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcopy.py52 import weakref
106 types.FunctionType, weakref.ref):
224 d[weakref.ref] = _deepcopy_atomic
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/
Dexpatreader.py42 import weakref
43 _mkproxy = weakref.proxy
44 del weakref, _weakref
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/logging/
D__init__.py26 import sys, os, time, cStringIO, traceback, warnings, weakref
613 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
637 _handlerList.append(weakref.ref(handler, _removeHandlerRef))

12