Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'concurrent': 0.04; 'subject:Python': 0.05; 'behavior.': 0.07; 'bash': 0.09; 'many)': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'grained': 0.16; 'pipes': 0.16; 'stdin': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; '(or': 0.22; 'module,': 0.23; 'received:209.85.213.46': 0.23; 'received:mail- yw0-f46.google.com': 0.23; '\xa0if': 0.23; 'fine': 0.24; 'module': 0.26; 'function': 0.27; 'script': 0.28; 'message- id:@mail.gmail.com': 0.29; 'modules': 0.32; 'fri,': 0.34; 'purely': 0.34; 'to:addr:python-list': 0.35; 'response': 0.36; 'suddenly': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'another': 0.37; 'received:209.85': 0.38; 'allows': 0.38; 'could': 0.38; '(with': 0.39; 'received:209': 0.39; 'change': 0.40; 'to:addr:python.org': 0.40; 'back': 0.60; 'simple': 0.61; 'your': 0.61; 'course,': 0.62; 'calls,': 0.84; 'nathan': 0.84; 'technique': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ave3CEuKLLqwIY54o8lO7WRdQEdMkldJtMt8F0uSVog=; b=lQnl9BkICyw2ZsGJnE2d9nEkX1sZC595DRm24nv2Ai3PNosst6S6AmWqOtQ92n8Ndk c28ON1ipVKg3xayP4kotEf8NQdTAvDpUb5sjgnehiGTUnVFs/WkzG5SpXEardDhvNv1g WJ2MgEVczZfEGPTCq+dTn4Dq96Z1hQMpRrTuB/nvT4BPMKlJBgG4kqA3uXF5F/P4gpjA s4uh6jPnT+N9L0XJKNtEJTnWL4xTpp9pYwX3WfdlK0i6oGWOhXPq7eM9wcqaiSueLWCa 8l5PcRz/viOKepX6eS7o7Yur2krdPnYtrqqaHYEr+Ss7jB+JRnWHmyec4IVO9CQgTxtI ixDg== MIME-Version: 1.0 In-Reply-To: References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <4f691f3d$0$29981$c3e8da3$5496439d@news.astraweb.com> <87d386lmai.fsf@benfinney.id.au> <8a77bf8d-b12f-442b-a1a3-479b5d66d366@tx8g2000pbc.googlegroups.com> <6af70db0-dc4a-48ee-9ee2-1a934846d5f2@r2g2000pbs.googlegroups.com> <32b8c4ae-2509-43df-abf0-0fb308be398f@oq7g2000pbb.googlegroups.com> <4f6ae931$0$29883$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 23 Mar 2012 06:48:01 +1100 Subject: Re: Python is readable 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332445685 news.xs4all.nl 6955 [2001:888:2000:d::a6]:54896 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22044 On Fri, Mar 23, 2012 at 6:33 AM, Nathan Rice wrote: > Pipes do not provide any fine grained control over the concurrent > behavior. =A0If you want to change the order of calls, suddenly you have > to write a bash script (with its own set of issues), etc. Go back to my original post. I posited a means of communication which allows one module to "call" a function in another module, purely by writing to stdout. All four (or however many) modules would run concurrently, and be waiting on stdin most of the time. Of course, the same technique could be used for true concurrency; with such a simple message-passing technique, there's no reason to wait for your response before continuing. ChrisA