Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _rebuild_socket
Function
_rebuild_socket
Lib/multiprocessing/reduction.py:237–238 ·
view source on GitHub ↗
(ds)
Source
from the content-addressed store, hash-verified
235
from
.resource_sharer
import
DupSocket
236
return
_rebuild_socket, (DupSocket(s),)
237
def
_rebuild_socket(ds):
238
return
ds.detach()
239
register(socket.socket, _reduce_socket)
240
241
else
:
Callers
nothing calls this directly
Calls
2
socket
Method · 0.80
detach
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…