MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/smtplib.py:1068–1072  ·  view source on GitHub ↗

Initialize a new instance.

(self, host='', port=LMTP_PORT, local_hostname=None,
                 source_address=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT)

Source from the content-addressed store, hash-verified

1066 ehlo_msg = "lhlo"
1067
1068 def __init__(self, host='', port=LMTP_PORT, local_hostname=None,
1069 source_address=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
1070 """Initialize a new instance."""
1071 super().__init__(host, port, local_hostname=local_hostname,
1072 source_address=source_address, timeout=timeout)
1073
1074 def connect(self, host='localhost', port=0, source_address=None):
1075 """Connect to the LMTP daemon, on either a Unix or a TCP socket."""

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected