MCPcopy 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
233if 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

DupSocketClass · 0.85
DupFdFunction · 0.70
filenoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…