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

Method settimeout

Lib/test/mock_socket.py:59–63  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

57 return 0
58
59 def settimeout(self, timeout):
60 if timeout is None:
61 self.timeout = _defaulttimeout
62 else:
63 self.timeout = timeout
64
65 def gettimeout(self):
66 return self.timeout

Callers 15

create_connectionFunction · 0.95
_get_responseMethod · 0.45
_createMethod · 0.45
do_handshakeMethod · 0.45
dupMethod · 0.45
create_connectionFunction · 0.45
makeportMethod · 0.45
ntransfercmdMethod · 0.45
connectMethod · 0.45
listenerMethod · 0.45
setupMethod · 0.45
makeSocketMethod · 0.45

Calls

no outgoing calls

Tested by 15

_create_server_socketFunction · 0.36
_wait_for_signalFunction · 0.36
_wait_for_n_signalsFunction · 0.36
_run_remote_exec_testMethod · 0.36
test_timeoutMethod · 0.36
runMethod · 0.36
startMethod · 0.36
do_integration_testMethod · 0.36
run_serverMethod · 0.36