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

Function reduce_pipe_connection

Lib/multiprocessing/connection.py:1219–1223  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

1217 reduction.register(Connection, reduce_connection)
1218
1219 def reduce_pipe_connection(conn):
1220 access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) |
1221 (_winapi.FILE_GENERIC_WRITE if conn.writable else 0))
1222 dh = reduction.DupHandle(conn.fileno(), access)
1223 return rebuild_pipe_connection, (dh, conn.readable, conn.writable)
1224 def rebuild_pipe_connection(dh, readable, writable):
1225 handle = dh.detach()
1226 return PipeConnection(handle, readable, writable)

Callers

nothing calls this directly

Calls 1

filenoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…