Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'cpython': 0.05; "(i'm": 0.09; 'compute': 0.09; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'protocol:': 0.16; 'received:192.168.1.20': 0.16; 'tcp,': 0.16; 'threading': 0.16; 'thunderbird': 0.16; 'twisted': 0.16; "wouldn't": 0.17; 'wrote:': 0.18; 'result.': 0.21; 'wrote': 0.22; 'header:In-Reply-To:1': 0.22; 'windows': 0.26; "i'm": 0.26; 'process,': 0.28; 'order.': 0.29; 'sends': 0.29; 'pm,': 0.29; 'fairly': 0.30; 'asynchronous': 0.30; 'subject:some': 0.30; 'threads': 0.30; 'usually': 0.31; "i'll": 0.31; 'does': 0.32; 'familiar': 0.32; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'actually': 0.33; 'done': 0.34; 'to:addr:python-list': 0.34; 'message.': 0.34; '(not': 0.35; 'running': 0.35; 'something': 0.35; 'response': 0.35; 'similar': 0.36; 'convenient': 0.37; 'but': 0.37; 'received:192': 0.37; 'received:google.com': 0.37; 'another': 0.37; 'could': 0.37; 'using': 0.38; 'some': 0.38; 'received:209.85': 0.38; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'received:192.168': 0.40; 'back': 0.62; 'information,': 0.67; 'works,': 0.68; 'interesting,': 0.84; 'look.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=gPMzVQTA+VAuh1IvWtwpHlioeDsjJ2Qz90ul9db9fx4=; b=F6w786Mkj5aU9fWMjfqs+ZsrML0OEZ7gRUBlsF9uYXDmvFY4wrnPKHrjIA8C4GtZjA pBSt41srDxJpYxx5aPoQSAMVSLBCemFt6kPi6GDBzcCuuwnhilJNIucILjv1ewyYA3cU f+3Meq+KwBFcQzoUeBhMYF5CyHI+pjPVDvdtY= Date: Wed, 30 Nov 2011 16:19:39 -0600 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Need some IPC pointers References: <4ED69A1A.3080609@gmail.com> In-Reply-To: X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322691589 news.xs4all.nl 6938 [2001:888:2000:d::a6]:36500 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16455 On 11/30/2011 3:32 PM, Devin Jeanpierre wrote: > You could also use threads and pipes. (I'm not actually > sure how threads+pipes works, but I'm told that it's a viable > approach). Sounds interesting, but I'm not familiar with threading (not that I wouldn't be willing to learn). Is it even possible to pipe into a running process, though? > For what it's worth, I wrote something potentially similar using Twisted > and AMP. AMP is an Asynchronous Messaging Protocol: this basically > means that clients and servers can send messages to each other at any > time in any order. Twisted makes sure that the right response gets > associated with the right message. This can be very convenient -- you > might request something from another process, and then to compute its > answer it might ask for some additional information from you, and then > you give it that information, and it sends back the final result. > > All the communication is done over TCP, usually using Twisted. So this > does involve bringing in a fairly large dependency. Sounds like overkill, but I'll take a look. -- CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0