changeset: 92916:8338ae599931 branch: 3.4 user: Victor Stinner date: Fri Oct 10 12:07:19 2014 +0200 files: Doc/library/ssl.rst description: Issue #22564: ssl doc: mention how SSLSocket are usually created diff -r 63386eda0cb7 -r 8338ae599931 Doc/library/ssl.rst --- a/Doc/library/ssl.rst Fri Oct 10 12:06:51 2014 +0200 +++ b/Doc/library/ssl.rst Fri Oct 10 12:07:19 2014 +0200 @@ -782,6 +782,9 @@ the specification of normal, OS-level sockets. See especially the :ref:`notes on non-blocking sockets `. + 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)