June 2017
Beginner to intermediate
274 pages
6h 49m
English
The wait method will return the exit code of the other program once it's done running. A lot of the complexity of working with PIPE, stdin, and stdout is wrapped up in the Popen class's communicate method, which accepts the input as a parameter and returns the output:

Communication is simple, but somewhat limited because it can only be called once for each Popen object and doesn't return until the other program finishes. This isn't any good for two programs that need to talk back and forth to each other, but it should be just perfect for our pipeline program, where each program receives the output of the previous program as ...
Read now
Unlock full access