Searched refs:ShareableList (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Doc/library/ |
D | multiprocessing.shared_memory.rst | 197 instances and for creating a list-like object (:class:`ShareableList`) 210 .. method:: ShareableList(sequence) 212 Create and return a new :class:`ShareableList` object, initialized 225 >>> sl = smm.ShareableList(range(4)) 227 ShareableList([0, 1, 2, 3], name='psm_6572_7512') 229 >>> another_sl = smm.ShareableList('alpha') 231 ShareableList(['a', 'l', 'p', 'h', 'a'], name='psm_6572_12221') 243 ... sl = smm.ShareableList(range(2000)) 258 .. class:: ShareableList(sequence=None, *, name=None) 266 and do not support the dynamic creation of new :class:`ShareableList` [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_genericalias.py | 28 from multiprocessing.shared_memory import ShareableList 31 ShareableList = None variable 82 ShareableList, MPSimpleQueue,
|
D | _test_multiprocessing.py | 3915 sl = smm.ShareableList(range(10)) 3922 sl2 = smm.ShareableList(range(10)) 3957 lol = [ smm1.ShareableList(range(i)) for i in range(5, 10) ] 3959 doppleganger_list0 = shared_memory.ShareableList(name=lol[0].shm.name) 3973 sl = smm2.ShareableList("howdy") 3979 absent_sl = shared_memory.ShareableList(name=held_name) 3983 sl = shared_memory.ShareableList( 4043 sl_copy = shared_memory.ShareableList(sl, name='test03_duplicate') 4057 sl_tethered = shared_memory.ShareableList(name=sl.shm.name) 4066 empty_sl = shared_memory.ShareableList() [all …]
|
/external/python/cpython3/Lib/multiprocessing/ |
D | shared_memory.py | 247 class ShareableList: class
|
D | managers.py | 1359 def ShareableList(self, sequence): member in SharedMemoryManager 1363 sl = shared_memory.ShareableList(sequence)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0a6.rst | 396 In :meth:`ShareableList.__setitem__`, check the size of a new string item 785 in :class:`multiprocessing.shared_memory.ShareableList`. This avoids 786 quadratic performance when iterating a `ShareableList`. Patch by Thomas
|