[Tutor] When to use multiprocessing Managers?

Steven D'Aprano steve at pearwood.info
Wed Feb 26 00:05:00 CET 2014


On Tue, Feb 25, 2014 at 02:55:31PM -0800, Danny Yoo wrote:
> I believe James is referring to:
> 
>     http://docs.python.org/2/library/queue.html
> 
> but I am not sure yet.  Let's hear back from him to clarify what he's
> looking at.


I think both the subject line and the description is fairly clear he's 
talking about Manager from multiprocessing :-)

py> from multiprocessing import Manager
py> Manager
<function Manager at 0xb7c6ac6c>
py> help(Manager)

Help on function Manager in module multiprocessing:

Manager()
    Returns a manager associated with a running server process

    The managers methods such as `Lock()`, `Condition()` and `Queue()`
    can be used to create shared objects.

 


-- 
Steven


More information about the Tutor mailing list