Searched refs:weaklist (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_threading_local.py | 16 def target(local, weaklist): argument 19 weaklist.append(weakref.ref(weak)) 31 weaklist = [] 33 t = threading.Thread(target=target, args=(local, weaklist)) 39 self.assertEqual(len(weaklist), n) 42 deadlist = [weak for weak in weaklist if weak() is None] 48 deadlist = [weak for weak in weaklist if weak() is None]
|
/external/python/cpython2/Lib/test/ |
D | test_threading_local.py | 16 def target(local, weaklist): argument 19 weaklist.append(weakref.ref(weak)) 30 weaklist = [] 32 t = threading.Thread(target=target, args=(local, weaklist)) 38 self.assertEqual(len(weaklist), n) 41 deadlist = [weak for weak in weaklist if weak() is None] 47 deadlist = [weak for weak in weaklist if weak() is None]
|
/external/python/cpython3/Python/ |
D | import.c | 341 PyObject *weaklist = NULL; in PyImport_Cleanup() local 377 weaklist = PyList_New(0); in PyImport_Cleanup() 378 if (weaklist == NULL) in PyImport_Cleanup() 382 if (weaklist != NULL) { \ in PyImport_Cleanup() 386 PyList_Append(weaklist, tup); \ in PyImport_Cleanup() 436 if (weaklist != NULL) { in PyImport_Cleanup() 438 n = PyList_GET_SIZE(weaklist); in PyImport_Cleanup() 440 PyObject *tup = PyList_GET_ITEM(weaklist, i); in PyImport_Cleanup() 455 Py_DECREF(weaklist); in PyImport_Cleanup()
|