Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Angelico
On Fri, Jun 3, 2011 at 6:50 PM, Steven D'Aprano wrote: > On Fri, 03 Jun 2011 18:26:47 +1000, Chris Angelico wrote: > >> Just how many Chrises are there on this list? I have a pet theory that >> there's a greater-than-usual correlation between geeks and the name >> "Chris", and the Python list has

Re: Multiprocessing.connection magic

2011-06-03 Thread Steven D'Aprano
On Fri, 03 Jun 2011 18:26:47 +1000, Chris Angelico wrote: > Just how many Chrises are there on this list? I have a pet theory that > there's a greater-than-usual correlation between geeks and the name > "Chris", and the Python list has provided a number of supporting > instances. My theory is tha

Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Angelico
On Fri, Jun 3, 2011 at 6:10 PM, Thomas Rachel wrote: > Kids, don't try this at home nor on your external server. > Aye... you would be in a pickle. (Yes, he really did make a pun that bad. Feel free to throw rotten tomatoes.) Chris Angelico -- http://mail.python.org/mailman/listinfo/python-lis

Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Angelico
On Fri, Jun 3, 2011 at 6:03 PM, Thomas Rachel wrote: > Am 03.06.2011 08:28 schrieb Claudiu Popa: >> >> Hello guys, >>       While  working  at a dispatcher using >>   multiprocessing.connection.Listener  module  I've stumbled upon some >>   sort    of  magic  trick  that  amazed  me. How is this p

Re: Multiprocessing.connection magic

2011-06-03 Thread Thomas Rachel
Am 03.06.2011 08:59 schrieb Chris Angelico: I don't know how effective the pickling of functions actually is. Someone else will doubtless be able to fill that in. Trying to do so, I get (with several protocol versions): >>> import pickle >>> pickle.dumps(pickle.dumps) 'cpickle\ndumps\np0\n.'

Re: Multiprocessing.connection magic

2011-06-03 Thread Thomas Rachel
Am 03.06.2011 08:28 schrieb Claudiu Popa: Hello guys, While working at a dispatcher using multiprocessing.connection.Listener module I've stumbled upon some sortof magic trick that amazed me. How is this possible and what does multiprocessing library doing in backg

Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Angelico
On Fri, Jun 3, 2011 at 5:03 PM, Chris Torek wrote: > The real magic is in the unpickler, which has figured out how to > access shutil.copy without importing shutil into the global namespace: So from this I gather that it doesn't actually pickle the code, just the name. Seems a little odd, but tha

Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Torek
In article Claudiu Popa wrote: >Hello guys, > While working at a dispatcher using > multiprocessing.connection.Listener module I've stumbled upon some > sortof magic trick that amazed me. How is this possible and > what does multiprocessing library doing in background for

Re: Multiprocessing.connection magic

2011-06-03 Thread Chris Angelico
On Fri, Jun 3, 2011 at 4:28 PM, Claudiu Popa wrote: > Hello guys, >      While  working  at a dispatcher using >  multiprocessing.connection.Listener  module  I've stumbled upon some >  sort    of  magic  trick  that  amazed  me. How is this possible and >  what  does  multiprocessing  library doi

Multiprocessing.connection magic

2011-06-02 Thread Claudiu Popa
Hello guys, While working at a dispatcher using multiprocessing.connection.Listener module I've stumbled upon some sortof magic trick that amazed me. How is this possible and what does multiprocessing library doing in background for this to work? Client, Python 2.6