MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / write

Method write

tools/python-3.11.9-amd64/Lib/idlelib/run.py:463–467  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

461 return True
462
463 def write(self, s):
464 if self.closed:
465 raise ValueError("write to closed file")
466 s = str.encode(s, self.encoding, self.errors).decode(self.encoding, self.errors)
467 return self.shell.write(s, self.tags)
468
469
470class StdInputFile(StdioFile):

Callers 4

test_writeMethod · 0.95
test_closeMethod · 0.95
idle_showwarning_subprocFunction · 0.45

Calls 2

decodeMethod · 0.45
encodeMethod · 0.45

Tested by 3

test_writeMethod · 0.76
test_closeMethod · 0.76