mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #26685: Raise OSError if closing a socket fails
This commit is contained in:
parent
f01e408c16
commit
50ab1a3694
6 changed files with 26 additions and 2 deletions
|
|
@ -868,6 +868,10 @@ to sockets.
|
|||
it is recommended to :meth:`close` them explicitly, or to use a
|
||||
:keyword:`with` statement around them.
|
||||
|
||||
.. versionchanged:: 3.6
|
||||
:exc:`OSError` is now raised if an error occurs when the underlying
|
||||
:c:func:`close` call is made.
|
||||
|
||||
.. note::
|
||||
|
||||
:meth:`close()` releases the resource associated with a connection but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue