You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken pipes should be handled better in 2.x #45937
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2010-07-09.03:43:21.414>created_at=<Date2007-12-11.22:02:26.267>labels= ['interpreter-core', 'type-feature']
title='Broken pipes should be handled better in 2.x'updated_at=<Date2010-07-09.03:43:21.413>user='https://github.com/avassalotti'
Activity
avassalotti commentedon Dec 11, 2007
I think Python 2.x should mimic, or improve on, the behavior of Py3k for
handling broken pipes. That is:
from filemodule.c; since this is impossible to override from Python.
Raise an IOError if so.
Finally, here's some examples to illustrate what I am saying:
alex:~% python -c "print" | head -n0
close failed: [Errno 32] Broken pipe
gvanrossum commentedon Dec 11, 2007
I'll entertain a patch for 2.6.
For 2.5 I think this smells too much like a feature.