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

Class StdOutputFile

Lib/idlelib/run.py:469–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467
468
469class StdOutputFile(StdioFile):
470
471 def writable(self):
472 return True
473
474 def write(self, s):
475 if self.closed:
476 raise ValueError("write to closed file")
477 s = str.encode(s, self.encoding, self.errors).decode(self.encoding, self.errors)
478 return self.shell.write(s, self.tags)
479
480
481class StdInputFile(StdioFile):

Callers 2

__init__Method · 0.90
handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…