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


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

Re: Using subprocess to capture a progress line

Started byChris Warrick <kwpolska@gmail.com>
First post2015-11-11 17:48 +0100
Last post2015-11-11 17:48 +0100
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: Using subprocess to capture a progress line Chris Warrick <kwpolska@gmail.com> - 2015-11-11 17:48 +0100

#98648 — Re: Using subprocess to capture a progress line

FromChris Warrick <kwpolska@gmail.com>
Date2015-11-11 17:48 +0100
SubjectRe: Using subprocess to capture a progress line
Message-ID<mailman.245.1447260540.16136.python-list@python.org>
On 11 November 2015 at 17:16, Tim Johnson <tim@akwebsoft.com> wrote:
>> (2) [don’t do it] do you need to intercept the lines? If you don’t set
>> stderr= and stdout=, things will print just fine.
>   Got to try that before using the module, just for edification.

At which point your initial code sample will become:
###########
    p = subprocess.Popen(list(args))
###########

(is list(args) really necessary? Wouldn’t plain Popen(args) just work?)

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

[toc] | [standalone]


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


csiph-web