Timeline for answer to Python Subprocess.Popen from a thread by nmanos
Current License: CC BY-SA 2.5
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 3, 2020 at 17:59 | comment | added | Aaron Voelker |
Also note that adding universal_newlines=True to the Popen command is useful if the process has a loading bar, and is repeatedly printing the progress followed by \r. Without the universal_newlines option you would need to wait until the final \n before getting one giant string (that contains all of the progress bars concatenated together).
|
|
| May 23, 2017 at 12:09 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Oct 17, 2013 at 1:58 | comment | added | Ian |
It should be noted that this implementation will block on process.stdout.readline().
|
|
| Feb 13, 2011 at 15:59 | history | edited | nmanos | CC BY-SA 2.5 |
added 32 characters in body
|
| Feb 2, 2011 at 9:25 | history | answered | nmanos | CC BY-SA 2.5 |