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


Groups > comp.lang.python > #8524 > unrolled thread

Re: Trying to chain processes together on a pipeline

Started byAndrew Berg <bahamutzero8825@gmail.com>
First post2011-06-28 01:47 -0500
Last post2011-06-28 01:47 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#8524 — Re: Trying to chain processes together on a pipeline

FromAndrew Berg <bahamutzero8825@gmail.com>
Date2011-06-28 01:47 -0500
SubjectRe: Trying to chain processes together on a pipeline
Message-ID<mailman.471.1309243643.1164.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web