Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ detach
Method
detach
Lib/test/test_socket.py:7510–7512 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7508
s.close()
7509
7510
def
detach():
7511
for
_ in range(1000):
7512
s.detach()
7513
7514
t1 = threading.Thread(target=close)
7515
t2 = threading.Thread(target=detach)
Callers
15
test_detach
Method · 0.45
child
Method · 0.45
test_unknown_socket_family_repr
Method · 0.45
_test_socket_fileno
Method · 0.45
testDetach
Method · 0.45
test_finalize
Method · 0.45
test_order
Method · 0.45
test_response_fileno
Method · 0.45
get_high_socket_fd
Method · 0.45
test_write_pipe_disconnect_on_close
Method · 0.45
test_repr
Method · 0.45
closed
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected