Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _reduce_socket
Function
_reduce_socket
Lib/multiprocessing/reduction.py:234–236 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
232
233
if
sys.platform ==
'win32'
:
234
def
_reduce_socket(s):
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)
Callers
nothing calls this directly
Calls
3
DupSocket
Class · 0.85
DupFd
Function · 0.70
fileno
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…