MCPcopy Index your code
hub / github.com/ipython/ipython / stdout_read

Function stdout_read

IPython/utils/_process_win32.py:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 # the bytes and then decode each line individually instead of just decoding
74 # the whole thing at once.
75 def stdout_read() -> None:
76 try:
77 assert p.stdout is not None
78 for byte_line in (read_no_interrupt(p.stdout) or b"").splitlines():
79 line = byte_line.decode(enc, "replace")
80 print(line, file=sys.stdout)
81 except Exception as e:
82 print(f"Error reading stdout: {e}", file=sys.stderr)
83
84 def stderr_read() -> None:
85 try:

Callers

nothing calls this directly

Calls 1

read_no_interruptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…