Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8524

Re: Trying to chain processes together on a pipeline

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.068
X-Spam-Evidence '*H*': 0.86; '*S*': 0.00; 'object.': 0.09; 'am,': 0.13; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'subject:Trying': 0.16; '>>>': 0.16; 'header:In-Reply-To:1': 0.22; 'code': 0.24; 'function': 0.26; 'windows': 0.27; 'received:209.85.214': 0.28; 'thanks': 0.30; 'least': 0.31; 'pointing': 0.32; 'message- id:@gmail.com': 0.32; 'error': 0.33; 'header:User-Agent:1': 0.34; 'to:addr:python-list': 0.34; 'that,': 0.35; 'function.': 0.35; 'probably': 0.35; 'file': 0.36; 'doing': 0.37; 'received:google.com': 0.37; 'but': 0.37; 'some': 0.37; 'received:209.85': 0.38; 'received:192': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'problems': 0.38; 'common': 0.39; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'logs': 0.40; 'skip:s 20': 0.40; 'would': 0.40; 'peter': 0.62; 'arise.': 0.84; 'otten': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=fHuZJ3nKdTne4LJFT76EmIS5z0F3kLyiDKSqA4MnAis=; b=n3tgV2YYecxaw9L6FTPoZoUKOgjw178mSViq9Z53NyrjAUfhuJ/NiBTdgdIL7QUkPT 4r8g6zArrU19PtwdkI0Ny6zA3ceYoDv0Yz/Ahl1Q4OiXF6vs4Jp9fECag3qHxSj3n6xl lnQ5gO4mwjwM9e1t2Sgvn51mZyk6O4Mz7IzDA=
DomainKey-Signature a=rsa-sha1; c=nofws; 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; b=YyhXPK9BDfJq8hdM99jJrAb1+iituCcxaRluiIWHGVeM6CUuucz0f+oAKkTbJvgcym EvV4yHJrfPWwTGgmeQV2EafBJtOAKSuqDIe171lNJcTpCZ2u7QCaKdm6c0dORlgdgeuZ wcuhx0yxvJvIv9ybLhxC3nEfdOPtHh6L2dGxk=
Date Tue, 28 Jun 2011 01:47:00 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 ThunderBrowse/3.3.5
MIME-Version 1.0
To "comp.lang.python" <python-list@python.org>
Subject Re: Trying to chain processes together on a pipeline
References <4E096D3B.3080300@gmail.com> <iubshf$dus$1@dough.gmane.org>
In-Reply-To <iubshf$dus$1@dough.gmane.org>
X-Enigmail-Version 1.1.1
Content-Type text/plain; charset=ISO-8859-1
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.471.1309243643.1164.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1309243643 news6.xs4all.nl 4354 [2001:888:2000:d::a6]:38629
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8524

Show key headers only | View raw


On 2011.06.28 01:32 AM, Peter Otten wrote:
> >>> subprocess.call(["ls"], stdout=open(os.devnull, "w"))
> 0
D'oh! Not sure why I was thinking os.devnull was a file object. :-[
> Start with factoring out common code into a good old function.
For some reason I was thinking I would have problems doing that, but
looking at it again, I could probably refactor that into a really nice
function that logs at least all the common Windows error codes that may
arise.

Thanks for pointing those out.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Trying to chain processes together on a pipeline Andrew Berg <bahamutzero8825@gmail.com> - 2011-06-28 01:47 -0500

csiph-web