Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8525
| References | <4E096D3B.3080300@gmail.com> <iubshf$dus$1@dough.gmane.org> <4E0978E4.8020200@gmail.com> |
|---|---|
| Date | 2011-06-27 23:52 -0700 |
| Subject | Re: Trying to chain processes together on a pipeline |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.472.1309243951.1164.python-list@python.org> (permalink) |
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