mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
7ddbaa7a1b
commit
03c8ddd9e9
24 changed files with 72 additions and 62 deletions
|
@ -283,6 +283,8 @@ Exceptions
|
|||
|
||||
.. exception:: timeout
|
||||
|
||||
A deprecated alias of :exc:`TimeoutError`.
|
||||
|
||||
A subclass of :exc:`OSError`, this exception is raised when a timeout
|
||||
occurs on a socket which has had timeouts enabled via a prior call to
|
||||
:meth:`~socket.settimeout` (or implicitly through
|
||||
|
@ -292,6 +294,9 @@ Exceptions
|
|||
.. versionchanged:: 3.3
|
||||
This class was made a subclass of :exc:`OSError`.
|
||||
|
||||
.. versionchanged:: 3.10
|
||||
This class was made an alias of :exc:`TimeoutError`.
|
||||
|
||||
|
||||
Constants
|
||||
^^^^^^^^^
|
||||
|
@ -1208,7 +1213,7 @@ to sockets.
|
|||
address family --- see above.)
|
||||
|
||||
If the connection is interrupted by a signal, the method waits until the
|
||||
connection completes, or raise a :exc:`socket.timeout` on timeout, if the
|
||||
connection completes, or raise a :exc:`TimeoutError` on timeout, if the
|
||||
signal handler doesn't raise an exception and the socket is blocking or has
|
||||
a timeout. For non-blocking sockets, the method raises an
|
||||
:exc:`InterruptedError` exception if the connection is interrupted by a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue