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

Method cpos

bpython/curtsiesfrontend/repl.py:1929–1931  ·  view source on GitHub ↗

many WATs were had - it's the pos from the end of the line back

(self)

Source from the content-addressed store, hash-verified

1927
1928 @property
1929 def cpos(self):
1930 "many WATs were had - it's the pos from the end of the line back"
1931 return len(self.current_line) - self.cursor_offset
1932
1933 def reprint_line(self, lineno, tokens):
1934 logger.debug("calling reprint line with %r %r", lineno, tokens)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected