summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorGiampaolo RodolĂ  <g.rodola@gmail.com>2010-09-08 22:44:12 (GMT)
committerGiampaolo RodolĂ  <g.rodola@gmail.com>2010-09-08 22:44:12 (GMT)
commitb383dbb45e62054e3a73792b7e903178bee18aa8 (patch)
tree929fb3d74b0bfb2d5427789722ee3363b535e7c4 /Doc/library/socket.rst
parent7c9cf01238cdfb597041d12e71d5a11a98402b34 (diff)
downloadcpython-b383dbb45e62054e3a73792b7e903178bee18aa8.zip
cpython-b383dbb45e62054e3a73792b7e903178bee18aa8.tar.gz
cpython-b383dbb45e62054e3a73792b7e903178bee18aa8.tar.bz2
Fix issue 9794: adds context manager protocol to socket.socket so that socket.create_connection() can be used with the 'with' statement.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r--Doc/library/socket.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 581756f..a7656c1 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -213,6 +213,9 @@ The module :mod:`socket` exports the following constants and functions:
.. versionchanged:: 3.2
*source_address* was added.
+ .. versionchanged:: 3.2
+ support for the :keyword:`with` statement was added.
+
.. function:: getaddrinfo(host, port, family=0, type=0, proto=0, flags=0)