Mention socket.herror (!)

This commit is contained in:
Antoine Pitrou 2010-11-10 17:38:46 +00:00
parent 12c3f5ecc0
commit 6d51c53840
1 changed files with 5 additions and 3 deletions

View File

@ -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: