From 6d51c538407e1f7b9e71ace04b5c8ec21bb6a87b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 10 Nov 2010 17:38:46 +0000 Subject: [PATCH] Mention socket.herror (!) --- pep-3151.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pep-3151.txt b/pep-3151.txt index 748a850c3..8508c0976 100644 --- a/pep-3151.txt +++ b/pep-3151.txt @@ -48,6 +48,7 @@ of classes, arranged in the following sub-hierarchies:: +-- io.UnsupportedOperation (also inherits from ValueError) +-- socket.error +-- socket.gaierror + +-- socket.herror +-- socket.timeout +-- OSError +-- VMSError @@ -225,6 +226,7 @@ become:: +-- io.BlockingIOError +-- io.UnsupportedOperation (also inherits from ValueError) +-- socket.gaierror + +-- socket.herror +-- socket.timeout Justification @@ -517,9 +519,9 @@ defines its own constants for error types (``ssl.SSL_ERROR_WANT_READ``, etc.). However, ``SSLError`` should be replaced with ``TimeoutError`` in the case it signals a socket timeout. -Endly, the fate of ``socket.gaierror`` is not settled. While it would -deserve a less cryptic name, this can be handled separately from the -exception hierarchy reorganization effort. +Endly, the fate of ``socket.gaierror`` and ``socket.herror`` is not settled. +While they would deserve less cryptic names, this can be handled separately +from the exception hierarchy reorganization effort. .. _Appendix A: