PyDocs

Nav

Concurrent Execution

SyncManager.list

  • SyncManager.list()
  • SyncManager.list(sequence)
Create a shared list object and return a proxy for it.
1 Example
>>> a = manager.list()
>>> b = manager.list()
>>> a.append(b)         # referent of a now contains referent of b
>>> print(a, b)
[<ListProxy object, typeid 'list' at ...>] []
>>> b.append('hello')
>>> print(a[0], b)
['hello'] ['hello']
from the Python docs
See Also
No see-alsos for multiprocessing.managers/SyncManager.list
0 Notes
No notes for SyncManager.list