PyDocs

Nav

Concurrent Execution

Namespace

  • Namespace(**kwds)
A type that can register with SyncManager.
1 Example
>>> mp_context = multiprocessing.get_context('spawn')
>>> manager = mp_context.Manager()
>>> Global = manager.Namespace()
>>> Global.x = 10
>>> Global.y = 'hello'
>>> Global._z = 12.3    # this is an attribute of the proxy
>>> print(Global)
Namespace(x=10, y='hello')
from the Python docs
See Also
No see-alsos for multiprocessing.managers/Namespace
0 Notes
No notes for Namespace