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

Function create_subprocess_shell

Lib/asyncio/subprocess.py:206–215  ·  view source on GitHub ↗
(cmd, stdin=None, stdout=None, stderr=None,
                                  limit=streams._DEFAULT_LIMIT, **kwds)

Source from the content-addressed store, hash-verified

204
205
206async def create_subprocess_shell(cmd, stdin=None, stdout=None, stderr=None,
207 limit=streams._DEFAULT_LIMIT, **kwds):
208 loop = events.get_running_loop()
209 protocol_factory = lambda: SubprocessStreamProtocol(limit=limit,
210 loop=loop)
211 transport, protocol = await loop.subprocess_shell(
212 protocol_factory,
213 cmd, stdin=stdin, stdout=stdout,
214 stderr=stderr, **kwds)
215 return Process(transport, protocol, loop)
216
217
218async def create_subprocess_exec(program, *args, stdin=None, stdout=None,

Callers

nothing calls this directly

Calls 3

ProcessClass · 0.70
subprocess_shellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…