On this page
  1. ssl.create_connection
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

ssl.create_connection

Prev: ssl.CertificateError | Up: ssl | Next: ssl.create_default_context
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_default_context
Ref: docs.python.org — ssl.create_connection
Tags: #public #python3 #stdlib #ssl


Import

import ssl
from ssl import create_connection

Signature & Overview

ssl.create_connection(address, timeout=<object object at 0x1040b4980>, source_address=None, *, all_errors=False)

Connect to address and return the socket object.

Usage

import socket
import ssl

assert ssl.create_connection is socket.create_connection

Gotchas

REPL Inspect

from ssl import create_connection
help(create_connection)

Linked from

Related notes