MCPcopy Create free account
hub / github.com/bpython/bpython / echo

Method echo

bpython/curtsiesfrontend/repl.py:1918–1926  ·  view source on GitHub ↗

Notification that redrawing the current line is necessary (we don't care, since we always redraw the whole screen) Supposed to parse and echo a formatted string with appropriate attributes. It's not supposed to update the screen if it's reevaluating the code

(self, msg, redraw=True)

Source from the content-addressed store, hash-verified

1916 self.unhighlight_paren()
1917
1918 def echo(self, msg, redraw=True):
1919 """
1920 Notification that redrawing the current line is necessary (we don't
1921 care, since we always redraw the whole screen)
1922
1923 Supposed to parse and echo a formatted string with appropriate
1924 attributes. It's not supposed to update the screen if it's reevaluating
1925 the code (as it does with undo)."""
1926 logger.debug("echo called with %r" % msg)
1927
1928 @property
1929 def cpos(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected