Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8525
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chris@rebertia.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.056 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'python': 0.08; 'object.': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'subject:Trying': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; '>>>': 0.16; 'mon,': 0.17; 'cheers,': 0.19; 'cc:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'received:209.85.212.46': 0.23; 'received:mail- vw0-f46.google.com': 0.23; 'message-id:@mail.gmail.com': 0.28; '27,': 0.29; 'cc:addr:python.org': 0.30; 'url:dev': 0.30; 'url:library': 0.31; 'chris': 0.32; 'andrew': 0.32; 'received:209.85.212': 0.34; 'file': 0.36; 'url:python': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.38; 'think': 0.38; 'subject:: ': 0.38; 'url:docs': 0.39; 'received:209': 0.39; 'skip:s 20': 0.40; 'peter': 0.62; 'due': 0.66; 'jun': 0.67; '11:47': 0.84; 'bright': 0.84; 'otten': 0.84; 'sender:addr:chris': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=cvdAX+WuQL/FUgk/Hxw/dDU+lzUWeygYtSlQn2mMAr0=; b=ESr1r+ZNRD1UAJj0k04XlywrZZMZw0/Rmxe7AG38ORNE+lgCMtvV0EOAyVoeLbvmCP hvcfVTikFFxt8waPyW4lv64QDg+N3wne6i7JFdSQTLIcswB4wnqY7SRH3bJSzvW4W7no OGzQqzXW98t8nI5hALxGVOAxR07cmXVFmcJus= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=R+iJYoW+bJ9+KixgMJbjvbP4PwxUrv8Xg2bppOZI6b4bI3sTlNEjsuJQbSZd5cn8Uz IpQZ+Up9nx+Jkkmq8YC/GdyOszdyc1jq4Wp6uKsAKj7hFz+07AY9xm+PnPNuf8AHcOyL /R9TlxjELZCFM7ia4jNvW4FBtojQrQh8CZgNc= |
| MIME-Version | 1.0 |
| Sender | chris@rebertia.com |
| In-Reply-To | <4E0978E4.8020200@gmail.com> |
| References | <4E096D3B.3080300@gmail.com> <iubshf$dus$1@dough.gmane.org> <4E0978E4.8020200@gmail.com> |
| Date | Mon, 27 Jun 2011 23:52:28 -0700 |
| X-Google-Sender-Auth | lPFWAdLVaZENZSWlRrGJ5lkp0OA |
| Subject | Re: Trying to chain processes together on a pipeline |
| From | Chris Rebert <clp2@rebertia.com> |
| To | Andrew Berg <bahamutzero8825@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | "comp.lang.python" <python-list@python.org> |
| 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.472.1309243951.1164.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1309243952 news6.xs4all.nl 4362 [2001:888:2000:d::a6]:35251 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8525 |
Show key headers only | View raw
On Mon, Jun 27, 2011 at 11:47 PM, Andrew Berg <bahamutzero8825@gmail.com> wrote: > 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. :-[ On the bright side, I think in part due to this /exact/ misunderstanding, in bleeding-edge Python v3.3 you can now write: >>> subprocess.call(["ls"], stdout=subprocess.DEVNULL) http://docs.python.org/dev/library/subprocess.html#subprocess.DEVNULL Cheers, Chris
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Trying to chain processes together on a pipeline Chris Rebert <clp2@rebertia.com> - 2011-06-27 23:52 -0700
csiph-web