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

Date 2011-06-28 01:47 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
Subject Re: Trying to chain processes together on a pipeline
References <4E096D3B.3080300@gmail.com> <iubshf$dus$1@dough.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.471.1309243643.1164.python-list@python.org> (permalink)

Show all headers | 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