diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-11 00:38:12 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-11 00:38:12 (GMT) |
commit | 50ab1a3694c43b9ab6798b98d9e5983c78cb17e2 (patch) | |
tree | 5ad077a9ff466bd0cab3074373f687b0e77367c1 /Doc/library/socket.rst | |
parent | f01e408c1688a207eba18444da8c151c872fba59 (diff) | |
download | cpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.zip cpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.tar.gz cpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.tar.bz2 |
Issue #26685: Raise OSError if closing a socket fails
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index c09927c..cd6e310 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -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 |