[Python-checkins] cpython (3.4): Issue #22564: ssl doc: mention how SSLSocket are usually created

victor.stinner python-checkins at python.org
Fri Oct 10 12:43:30 CEST 2014


https://hg.python.org/cpython/rev/8338ae599931
changeset: 92916:8338ae599931
branch: 3.4
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Oct 10 12:07:19 2014 +0200
summary:
 Issue #22564: ssl doc: mention how SSLSocket are usually created
files:
 Doc/library/ssl.rst | 3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -782,6 +782,9 @@
 the specification of normal, OS-level sockets. See especially the
 :ref:`notes on non-blocking sockets <ssl-nonblocking>`.
 
+ Usually, :class:`SSLSocket` are not created directly, but using the
+ :func:`wrap_socket` function or the :meth:`SSLContext.wrap_socket` method.
+
 SSL sockets also have the following additional methods and attributes:
 
 .. method:: SSLSocket.read(len=0, buffer=None)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /