Issue #22564: ssl doc: mention how SSLSocket are usually created

This commit is contained in:
Victor Stinner 2014-10-10 12:07:19 +02:00
parent 3c3d3c73f3
commit d28fe8c8f4
1 changed files with 3 additions and 0 deletions

View 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)