Using subprocess to capture a progress line

Chris Warrick kwpolska at gmail.com
Wed Nov 11 11:48:56 EST 2015


On 11 November 2015 at 17:16, Tim Johnson <tim at 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



More information about the Python-list mailing list