summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-21 15:36:48 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-21 15:36:48 (GMT)
commit19a8e844e455a26419f35bd4b57d4a7d19b61b69 (patch)
tree860491b485c505f4a95898dadc7c5abc482c5760 /Misc
parent322bc12c3142e7816dd34c6c3085929ab29d3ed8 (diff)
downloadcpython-19a8e844e455a26419f35bd4b57d4a7d19b61b69.zip
cpython-19a8e844e455a26419f35bd4b57d4a7d19b61b69.tar.gz
cpython-19a8e844e455a26419f35bd4b57d4a7d19b61b69.tar.bz2
Add socket finalizer
Issue #26590: Implement a safe finalizer for the _socket.socket type. It now releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the ResourceWarning to pass the socket object to the warning logger, to get the traceback where the socket was created (allocated).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 2fa82f3..6dfac97 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -232,6 +232,9 @@ Core and Builtins
Library
-------
+- Issue #26590: Implement a safe finalizer for the _socket.socket type. It now
+ releases the GIL to close the socket.
+
- Issue #18787: spwd.getspnam() now raises a PermissionError if the user
doesn't have privileges.