diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-06-18 20:29:30 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-06-18 20:29:30 (GMT) |
commit | ac38571f00ccb5e1e0346ad27a8fac96d05e61c3 (patch) | |
tree | f9c8bc09a58917250daf9ac1beec8196b98a4912 /Doc/library/multiprocessing.rst | |
parent | 9c1feb88f3511b35663ea4cc2a1f8cd2b21ee3d1 (diff) | |
download | cpython-ac38571f00ccb5e1e0346ad27a8fac96d05e61c3.zip cpython-ac38571f00ccb5e1e0346ad27a8fac96d05e61c3.tar.gz cpython-ac38571f00ccb5e1e0346ad27a8fac96d05e61c3.tar.bz2 |
Issue #15064: Make BaseManager.__enter__() start server if necessary.
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r-- | Doc/library/multiprocessing.rst | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 2f64bb1..8858859 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -1281,9 +1281,14 @@ their parent process exits. The manager classes are defined in the The address used by the manager. - Manager objects support the context manager protocol -- see - :ref:`typecontextmanager`. :meth:`__enter__` returns the - manager object, and :meth:`__exit__` calls :meth:`shutdown`. + .. versionchanged:: 3.3 + Manager objects support the context manager protocol -- see + :ref:`typecontextmanager`. :meth:`__enter__` starts the server + process (if it has not already started) and then returns the + manager object. :meth:`__exit__` calls :meth:`shutdown`. + + In previous versions :meth:`__enter__` did not start the + manager's server process if it was not already started. .. class:: SyncManager |