diff --git a/pep-3151.txt b/pep-3151.txt index 6488e19c9..8dfca59a1 100644 --- a/pep-3151.txt +++ b/pep-3151.txt @@ -369,7 +369,7 @@ the list of errnos mapped to them, is submitted to discussion: else (ENOTDIR) * ``PermissionError``: trying to run an operation without the adequate access - rights - for example filesystem permissions (EACCESS, EPERM) + rights - for example filesystem permissions (EACCES, EPERM) * ``BlockingIOError``: an operation would block on an object (e.g. socket) set for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS); @@ -385,7 +385,7 @@ the list of errnos mapped to them, is submitted to discussion: * ``ConnectionResetError``: connection reset by peer (ECONNRESET) -* ``TimeoutError``: connection timed out (ECONNTIMEOUT); this can be re-cast +* ``TimeoutError``: connection timed out (ETIMEDOUT); this can be re-cast as a generic timeout exception, replacing ``socket.timeout`` and also useful for other types of timeout (for example in Lock.acquire()) @@ -413,8 +413,8 @@ shown:: +-- FileNotFoundError ENOENT +-- IsADirectoryError EISDIR +-- NotADirectoryError ENOTDIR - +-- PermissionError EACCESS, EPERM - +-- TimeoutError ECONNTIMEOUT + +-- PermissionError EACCES, EPERM + +-- TimeoutError ETIMEDOUT Naming ------