[Python-ideas] Hooks into the IO system to intercept raw file reads/writes

Paul Moore p.f.moore at gmail.com
Wed Feb 4 14:18:30 CET 2015


On 4 February 2015 at 11:32, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Hmmm, you could try adding this at the bottom
> of run_subprocess:
>
>     yield from proc.wait()

Yeah, I had already tried that, but no improvement.

... found it. You need loop.close() at the end. Maybe the loop object
should close itself in the __del__ method, like file objects?

Paul


More information about the Python-ideas mailing list