[Python-checkins] peps: Add InterruptedError for EINTR

antoine.pitrou python-checkins at python.org
Wed Jul 27 00:51:44 CEST 2011


http://hg.python.org/peps/rev/ae88728e57b7
changeset:   3913:ae88728e57b7
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Jul 27 00:44:35 2011 +0200
summary:
  Add InterruptedError for EINTR

files:
  pep-3151.txt |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/pep-3151.txt b/pep-3151.txt
--- a/pep-3151.txt
+++ b/pep-3151.txt
@@ -376,6 +376,9 @@
   for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
   this is the existing ``io.BlockingIOError`` with an extended role
 
+* ``InterruptedError``: a system call was interrupted by an incoming signal
+  (EINTR)
+
 * ``ConnectionAbortedError``: connection attempt aborted by peer (ECONNABORTED)
 
 * ``ConnectionRefusedError``: connection reset by peer (ECONNREFUSED)
@@ -409,6 +412,7 @@
         +-- FileNotFoundError                                      ENOENT
         +-- IsADirectoryError                                      EISDIR
         +-- NotADirectoryError                                    ENOTDIR
+    +-- InterruptedError                                            EINTR
     +-- PermissionError                                     EACCES, EPERM
     +-- TimeoutError                                            ETIMEDOUT
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list