summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-11 00:38:12 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-11 00:38:12 (GMT)
commit50ab1a3694c43b9ab6798b98d9e5983c78cb17e2 (patch)
tree5ad077a9ff466bd0cab3074373f687b0e77367c1 /Doc/whatsnew
parentf01e408c1688a207eba18444da8c151c872fba59 (diff)
downloadcpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.zip
cpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.tar.gz
cpython-50ab1a3694c43b9ab6798b98d9e5983c78cb17e2.tar.bz2
Issue #26685: Raise OSError if closing a socket fails
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.6.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 9be1a9c..8bf2847 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -514,6 +514,10 @@ Changes in the Python API
* :func:`spwd.getspnam` now raises a :exc:`PermissionError` instead of
:exc:`KeyError` if the user doesn't have privileges.
+* The :meth:`socket.socket.close` method now raises an exception if
+ an error (e.g. EBADF) was reported by the underlying system call.
+ See :issue:`26685`.
+
Changes in the C API
--------------------