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

Method write

bpython/curtsiesfrontend/interpreter.py:82–86  ·  view source on GitHub ↗

Default stderr handler for tracebacks Accepts FmtStrs so interpreters can output them

(err_line: str | FmtStr)

Source from the content-addressed store, hash-verified

80 # typically changed after being instantiated
81 # but used when interpreter used corresponding REPL
82 def write(err_line: str | FmtStr) -> None:
83 """Default stderr handler for tracebacks
84
85 Accepts FmtStrs so interpreters can output them"""
86 sys.stderr.write(str(err_line))
87
88 self.write = write # type: ignore
89 self.outfile = self

Callers 1

formatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected