Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98648 > unrolled thread
| Started by | Chris Warrick <kwpolska@gmail.com> |
|---|---|
| First post | 2015-11-11 17:48 +0100 |
| Last post | 2015-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.
Re: Using subprocess to capture a progress line Chris Warrick <kwpolska@gmail.com> - 2015-11-11 17:48 +0100
| From | Chris Warrick <kwpolska@gmail.com> |
|---|---|
| Date | 2015-11-11 17:48 +0100 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web