[Tutor] help with subprocess module

Cameron Simpson cs at cskk.id.au
Sat Aug 19 18:43:51 EDT 2017


On 19Aug2017 06:13, kay Cee <unee0x at gmail.com> wrote:
>            update_log = open('update_log.txt', 'r+')

Normally one would use 'a' (append) for a log open. I don't see what 'r+' 
accomplishes for you. In particular I expect it would always write at the start 
of the log file, overwriting whatever was there. Which might be your problem.

Others have made other remarks.

I'm not sure any of your problems have to do with the subprocess module itself.

Cheers,
Cameron Simpson <cs at cskk.id.au> (formerly cs at zip.com.au)


More information about the Tutor mailing list