[issue23570] Change "with subprocess.Popen():" (context manager) to ignore broken pipe error

Serhiy Storchaka report at bugs.python.org
Tue Mar 3 14:17:49 CET 2015


Serhiy Storchaka added the comment:

> Your solution is different: I would prefer to also ignore broken pipe errors
> on close(). I'm not sure that close() can raise a BrokenPipeError in
> practice.

Of course all this code should be inside try/except block that ignores a 
BrokenPipeError.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23570>
_______________________________________


More information about the Python-bugs-list mailing list