Multiprocessing.connection magic

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Fri Jun 3 04:03:24 EDT 2011


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 possible and
>    what  does  multiprocessing  library doing in background for this to
>    work?

As Chris already said, it probably uses pickle. Doing so, you should be 
aware that unpickling strings can execute arbitrary code. So be very 
careful if you use something like that...


Thomas



More information about the Python-list mailing list