MCPcopy Index your code
hub / github.com/bpython/bpython / write

Method write

bpython/curtsiesfrontend/repl.py:218–221  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

216 doesn't make any sense anyway."""
217
218 def write(self, value):
219 # XXX IPython expects sys.stdin.write to exist, there will no doubt be
220 # others, so here's a hack to keep them happy
221 raise OSError(errno.EBADF, "sys.stdin is read-only")
222
223 def close(self) -> None:
224 # hack to make closing stdin a nop

Callers 13

setUpMethod · 0.45
load_temp_configMethod · 0.45
test_exec_dunder_fileMethod · 0.45
nextMethod · 0.45
test_interactiveMethod · 0.45
write_startup_fileMethod · 0.45
initFunction · 0.45
focus_on_subprocessMethod · 0.45

Calls

no outgoing calls

Tested by 10

setUpMethod · 0.36
load_temp_configMethod · 0.36
test_exec_dunder_fileMethod · 0.36
nextMethod · 0.36
test_interactiveMethod · 0.36
write_startup_fileMethod · 0.36