]> granicus.if.org Git - python/commitdiff
Issue #22564: ssl doc: mention how SSLSocket are usually created
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Oct 2014 10:07:19 +0000 (12:07 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Oct 2014 10:07:19 +0000 (12:07 +0200)
Doc/library/ssl.rst

index 5f4a118225dd75bf4149b18b252b3ceb0733e744..6489ecfc25793a4583269e566903b67b7651d36c 100644 (file)
@@ -782,6 +782,9 @@ SSL Sockets
    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)