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

Method out

doc/sphinx/source/simplerepl.py:66–71  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

64 self.requested_events.append(bpythonevents.UndoEvent(n=n))
65
66 def out(self, msg):
67 if hasattr(self, "orig_stdout"):
68 self.orig_stdout.write(f"{msg}\n")
69 self.orig_stdout.flush()
70 else:
71 print(msg)
72
73 def on_suspend(self):
74 pass

Callers 5

_schedule_refreshMethod · 0.95
_request_reloadMethod · 0.95
after_suspendMethod · 0.95
print_paddedMethod · 0.95
print_outputMethod · 0.95

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected