MCPcopy 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
241else:

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
detachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…