PyDocs

Nav

Concurrent Execution

SyncManager.dict

  • SyncManager.dict()
  • SyncManager.dict(mapping)
  • SyncManager.dict(sequence)
Create a shared dict object and return a proxy for it.
1 Example
>>> l_outer = manager.list([ manager.dict() for i in range(2) ])
>>> d_first_inner = l_outer[0]
>>> d_first_inner['a'] = 1
>>> d_first_inner['b'] = 2
>>> l_outer[1]['c'] = 3
>>> l_outer[1]['z'] = 26
>>> print(l_outer[0])
{'a': 1, 'b': 2}
>>> print(l_outer[1])
{'c': 3, 'z': 26}
from the Python docs
See Also
No see-alsos for multiprocessing.managers/SyncManager.dict
0 Notes
No notes for SyncManager.dict