You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subprocess.check_output() is nice, but doesn't help if you want to process the piped data line-by-line.
Currently, that means you have to do the full Popen dance if you want access to each line of output as it becomes available.
This RFE is for a subprocess.iter_output() module level helper that:
Starts the subprocess
Yield the individual lines of output as they are produced by the subprocess
Cleans up (including checking for errors) at the end
This biggest challenge I have noticed so far in exploring this is how to handle timeouts on Windows - on Unix, select.select() can do the job, but that won't handle pipes in the Windows case.
This biggest challenge I have noticed so far in exploring
this is how to handle timeouts on Windows
I haven't actually looked into it but this somewhat recalls: http://bugs.python.org/issue1191964
Since bpo-1191964 is supposed to provide async subprocess I/O I presume Windows timeouts are also involved somewhere in the provided patch/recipe.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: