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

Method connect_write_pipe

Lib/asyncio/events.py:552–563  ·  view source on GitHub ↗

Register write pipe in event loop. protocol_factory should instantiate object with BaseProtocol interface. Pipe is file-like object already switched to nonblocking. Return pair (transport, protocol), where transport support WriteTransport interface.

(self, protocol_factory, pipe)

Source from the content-addressed store, hash-verified

550 raise NotImplementedError
551
552 async def connect_write_pipe(self, protocol_factory, pipe):
553 """Register write pipe in event loop.
554
555 protocol_factory should instantiate object with BaseProtocol interface.
556 Pipe is file-like object already switched to nonblocking.
557 Return pair (transport, protocol), where transport support
558 WriteTransport interface."""
559 # The reason to accept file-like object instead of just file descriptor
560 # is: we need to own pipe and close it at transport finishing
561 # Can got complicated errors if pass f.fileno(),
562 # close fd in pipe transport then close f and vice versa.
563 raise NotImplementedError
564
565 async def subprocess_shell(self, protocol_factory, cmd, *,
566 stdin=subprocess.PIPE,

Callers 7

innerMethod · 0.95
_connect_pipesMethod · 0.45
connectMethod · 0.45
test_write_pipeMethod · 0.45
test_write_ptyMethod · 0.45

Calls

no outgoing calls

Tested by 6

innerMethod · 0.76
connectMethod · 0.36
test_write_pipeMethod · 0.36
test_write_ptyMethod · 0.36