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

Function socket

Lib/test/mock_socket.py:114–115  ·  view source on GitHub ↗
(family=None, type=None, proto=None)

Source from the content-addressed store, hash-verified

112
113
114def socket(family=None, type=None, proto=None):
115 return MockSocket(family)
116
117def create_connection(address, timeout=socket_module._GLOBAL_DEFAULT_TIMEOUT,
118 source_address=None):

Callers

nothing calls this directly

Calls 1

MockSocketClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…