I\'d like to both capture and display the output of a process that I invoke through Python\'s subprocess.
I thought I could just pass my file-like object as named pa
A file-like is not close enough. It must be an actual file with an actual file descriptor. Use subprocess's support for pipes and read from them as appropriate.
subprocess