Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'python': 0.08; 'ambiguity': 0.09; 'pm,': 0.10; 'received:209.85.214.174': 0.14; 'received:mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'correlation': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guys,': 0.16; 'instances.': 0.16; 'rachel': 0.16; 'stumbled': 0.16; 'list?': 0.16; 'header:In- Reply-To:1': 0.21; 'skip:m 30': 0.21; 'code.': 0.22; 'fri,': 0.23; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'that...': 0.30; 'sort': 0.31; 'named': 0.32; 'to:addr:python- list': 0.33; 'list': 0.33; 'chris': 0.34; 'that,': 0.34; 'there': 0.35; 'using': 0.35; 'probably': 0.36; 'uses': 0.36; 'supporting': 0.37; 'received:google.com': 0.37; 'something': 0.37; 'received:209.85': 0.37; 'two': 0.37; 'execute': 0.38; 'subject:: ': 0.38; 'some': 0.38; '8bit%:6': 0.39; 'doing': 0.39; 'should': 0.39; 'said': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'piece': 0.63; 'safe': 0.69; 'schrieb': 0.84; 'subject:magic': 0.84; 'subject:skip:M 20': 0.84; '\xa0at': 0.84; '\xa0of': 0.84; 'pet': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=FteDqKNMXdFQWhufZxKSCcHPZ7wLiqwjPqRGMNAV65w=; b=u8KUPIuf1c9jKbEgZiISLehh4pTaUpjFeEsNLCPE3ZA/jv76ZFotQ7N7D2rjexgIjQ EQFzbxeE2IVPrwcIcIbYa7CSst5e0wznGtheGI1KGmmC6DvrEH0OoKMtJoF0HrBsOE8C 0OsC50EJgK7512GKJWfbEKgkNs/2ndy/fHJYw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HRDY7gqkQJWANG/duT99JGMLZI1swE+Umly6IToiayv0RVX7j7yO4StyiHoaNJu0Vl VbtPca7nIbTMKYmcRLorq/hPUTkJAuVx6sQ7zHJT09ZfOSZwZ1zu2uNvb8WSsXhWOSEy oNcrrPSo+qTQ69kulwa+8WShu67vBplT0Cc08= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 3 Jun 2011 18:26:47 +1000 Subject: Re: Multiprocessing.connection magic From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307089610 news.xs4all.nl 49176 [::ffff:82.94.164.166]:47994 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6926 On Fri, Jun 3, 2011 at 6:03 PM, Thomas Rachel wrote: > Am 03.06.2011 08:28 schrieb Claudiu Popa: >> >> Hello guys, >> =A0 =A0 =A0 While =A0working =A0at a dispatcher using >> =A0 multiprocessing.connection.Listener =A0module =A0I've stumbled upon = some >> =A0 sort =A0 =A0of =A0magic =A0trick =A0that =A0amazed =A0me. How is thi= s possible and >> =A0 what =A0does =A0multiprocessing =A0library doing in background for t= his to >> =A0 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 care= ful > if you use something like that... Nice piece of safe ambiguity there - two people said that, both named Chris= ! 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. Chris Angelico