Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
114
def
socket(family=None, type=None, proto=None):
115
return
MockSocket(family)
116
117
def
create_connection(address, timeout=socket_module._GLOBAL_DEFAULT_TIMEOUT,
118
source_address=None):
Callers
nothing calls this directly
Calls
1
MockSocket
Class · 0.70
Tested by
no test coverage detected