[Python-checkins] peps: Add BrokenPipeError mapping both EPIPE and ESHUTDOWN
antoine.pitrou
python-checkins at python.org
Wed Jul 27 02:13:15 CEST 2011
http://hg.python.org/peps/rev/0a5234cbc204
changeset: 3914:0a5234cbc204
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Jul 27 02:11:38 2011 +0200
summary:
Add BrokenPipeError mapping both EPIPE and ESHUTDOWN
files:
pep-3151.txt | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/pep-3151.txt b/pep-3151.txt
--- a/pep-3151.txt
+++ b/pep-3151.txt
@@ -376,6 +376,10 @@
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
this is the existing ``io.BlockingIOError`` with an extended role
+* ``BrokenPipeError``: trying to write on a pipe while the other end has been
+ closed, or trying to write on a socket which has been shutdown for writing
+ (EPIPE, ESHUTDOWN)
+
* ``InterruptedError``: a system call was interrupted by an incoming signal
(EINTR)
@@ -404,6 +408,7 @@
+-- BlockingIOError EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS
+-- ConnectionError
+ +-- BrokenPipeError EPIPE, ESHUTDOWN
+-- ConnectionAbortedError ECONNABORTED
+-- ConnectionRefusedError ECONNREFUSED
+-- ConnectionResetError ECONNRESET
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list