PyDocs

Nav

Concurrent Execution

SharedMemoryManager.ShareableList

  • SharedMemoryManager.ShareableList(sequence)
Returns a new ShareableList instance populated with the values
from the input sequence, to be tracked by the manager.
1 Example
>>> b = shared_memory.ShareableList(range(5))         # In a first process
>>> c = shared_memory.ShareableList(name=b.shm.name)  # In a second process
>>> c
ShareableList([0, 1, 2, 3, 4], name='...')
>>> c[-1] = -999
>>> b[-1]
-999
>>> b.shm.close()
>>> c.shm.close()
>>> c.shm.unlink()
from the Python docs
See Also
No see-alsos for multiprocessing.managers/SharedMemoryManager.ShareableList
0 Notes
No notes for SharedMemoryManager.ShareableList