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

Method write_stdin

Lib/test/test_asyncio/test_subprocess.py:344–348  ·  view source on GitHub ↗
(proc, data)

Source from the content-addressed store, hash-verified

342 )
343
344 async def write_stdin(proc, data):
345 proc.stdin.write(data)
346 # Only exit the child process once the write buffer is filled
347 os.write(wfd, b'go')
348 await proc.stdin.drain()
349
350 coro = write_stdin(proc, large_data)
351 # drain() must raise BrokenPipeError or ConnectionResetError

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
drainMethod · 0.45

Tested by

no test coverage detected