MCPcopy Index your code
hub / github.com/python/cpython / rebuild_connection

Function rebuild_connection

Lib/multiprocessing/connection.py:1214–1216  ·  view source on GitHub ↗
(ds, readable, writable)

Source from the content-addressed store, hash-verified

1212 ds = resource_sharer.DupSocket(s)
1213 return rebuild_connection, (ds, conn.readable, conn.writable)
1214 def rebuild_connection(ds, readable, writable):
1215 sock = ds.detach()
1216 return Connection(sock.detach(), readable, writable)
1217 reduction.register(Connection, reduce_connection)
1218
1219 def reduce_pipe_connection(conn):

Callers

nothing calls this directly

Calls 2

ConnectionClass · 0.70
detachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…