Re: [Tutor] When to use multiprocessing Managers?

2014-03-03 Thread James Chapman
Thanks for the explanation. Is there any reason or case you can think of where on a single system you would use the manager (proxied) queue over the multiprocessing (piped) queue? Actually I can probably answer this myself... The manager could potentially be extended to do some kind of data

Re: [Tutor] When to use multiprocessing Managers?

2014-03-03 Thread eryksun
On Mon, Mar 3, 2014 at 6:45 AM, James Chapman ja...@uplinkzero.com wrote: Thanks for the explanation. Is there any reason or case you can think of where on a single system you would use the manager (proxied) queue over the multiprocessing (piped) queue? Not really. But a manager also lets

Re: [Tutor] When to use multiprocessing Managers?

2014-03-01 Thread eryksun
On Fri, Feb 28, 2014 at 6:31 AM, James Chapman ja...@uplinkzero.com wrote: log_Q = multiprocessing.Queue() This is a Queue from multiprocessing.queues. It uses system resources (e.g. a semaphore for the queue capacity) that can be shared with processes on the same machine. A value `put` in a

Re: [Tutor] When to use multiprocessing Managers?

2014-02-28 Thread James Chapman
Thanks for the replies so far... As per the subject line, yes I'm talking about managers and any object a manager is capable of spawning. This is not version specific or code specific, it's more a discussion on when to use a manager and when it's not needed. From the OReilly link sent by

Re: [Tutor] When to use multiprocessing Managers?

2014-02-26 Thread David Palao
2014-02-25 11:52 GMT+01:00 James Chapman ja...@uplinkzero.com: Hello tutors I'm curious about managers and when to use them. For example, I see they offer a Queue() for sharing a Q between processes, but if I create a Q in the parent process and pass it down to child processes, then they can

[Tutor] When to use multiprocessing Managers?

2014-02-25 Thread James Chapman
Hello tutors I'm curious about managers and when to use them. For example, I see they offer a Queue() for sharing a Q between processes, but if I create a Q in the parent process and pass it down to child processes, then they can put messages into that Q just fine, and I presume the same thing

Re: [Tutor] When to use multiprocessing Managers?

2014-02-25 Thread Steven D'Aprano
On Tue, Feb 25, 2014 at 10:52:19AM +, James Chapman wrote: Hello tutors I'm curious about managers and when to use them. [...] I have absolutely no idea about multiprocessing managers, sorry, but a few seconds googling found these:

Re: [Tutor] When to use multiprocessing Managers?

2014-02-25 Thread Danny Yoo
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. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] When to use multiprocessing Managers?

2014-02-25 Thread Steven D'Aprano
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