/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_weakref.py | 5 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 …]
|
D | test_code.py | 84 import weakref 132 coderef = weakref.ref(f.__code__, callback)
|
D | test_gc.py | 5 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!
|
D | test_threading_local.py | 4 import weakref 19 weaklist.append(weakref.ref(weak)) 201 wr = weakref.ref(x)
|
D | test_thread.py | 8 import weakref 127 wr = weakref.ref(task, lambda _: done.append(None))
|
D | test_copy.py | 5 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()
|
D | test_threading.py | 12 import weakref 402 weak_cyclic_object = weakref.ref(cyclic_object) 410 weak_raising_cyclic_object = weakref.ref(raising_cyclic_object)
|
D | test_abc.py | 6 import unittest, weakref 221 r = weakref.ref(C)
|
D | test_memoryview.py | 9 import weakref 228 wr = weakref.ref(o)
|
D | test_sys.py | 753 import weakref 754 check(weakref.ref(int), size(h + '2Pl2P')) 758 check(weakref.proxy(int), size(h + '2Pl2P'))
|
D | test_deque.py | 5 import weakref 510 ref = weakref.ref(obj) 630 p = weakref.proxy(d)
|
D | test_dict.py | 5 import gc, weakref 545 ref = weakref.ref(obj)
|
D | test_file.py | 10 from weakref import proxy
|
D | test_fileio.py | 10 from weakref import proxy
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | gc_weakref.txt | 4 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/ |
D | mutation_inside_cyclegc.py | 13 import weakref 28 keepalive.append(weakref.ref(a, callback))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/ |
D | connection.c | 238 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/ |
D | signals.py | 2 import weakref 27 _results = weakref.WeakKeyDictionary()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
D | test_break.py | 5 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/ |
D | copy.py | 52 import weakref 106 types.FunctionType, weakref.ref): 224 d[weakref.ref] = _deepcopy_atomic
|
D | symtable.py | 8 import weakref 21 self.__memo = weakref.WeakValueDictionary()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/ |
D | expatreader.py | 42 import weakref 43 _mkproxy = weakref.proxy 44 del weakref, _weakref
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | copy.py | 52 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/ |
D | expatreader.py | 42 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__.py | 26 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))
|