Home
last modified time | relevance | path

Searched refs:ShareableList (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Doc/library/
Dmultiprocessing.shared_memory.rst197 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/
Dtest_genericalias.py28 from multiprocessing.shared_memory import ShareableList
31 ShareableList = None variable
82 ShareableList, MPSimpleQueue,
D_test_multiprocessing.py3915 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/
Dshared_memory.py247 class ShareableList: class
Dmanagers.py1359 def ShareableList(self, sequence): member in SharedMemoryManager
1363 sl = shared_memory.ShareableList(sequence)
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a6.rst396 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