Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d28fe8c

Browse files
committed
Issue #22564: ssl doc: mention how SSLSocket are usually created
1 parent 3c3d3c7 commit d28fe8c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/ssl.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,9 @@ SSL Sockets
782782
the specification of normal, OS-level sockets. See especially the
783783
:ref:`notes on non-blocking sockets <ssl-nonblocking>`.
784784

785+
Usually, :class:`SSLSocket` are not created directly, but using the
786+
:func:`wrap_socket` function or the :meth:`SSLContext.wrap_socket` method.
787+
785788
SSL sockets also have the following additional methods and attributes:
786789

787790
.. method:: SSLSocket.read(len=0, buffer=None)

0 commit comments

Comments
 (0)