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

Method first

bpython/history.py:71–75  ·  view source on GitHub ↗

Move back to the beginning of the history.

(self)

Source from the content-addressed store, hash-verified

69 entries.append(line)
70
71 def first(self) -> str:
72 """Move back to the beginning of the history."""
73 if not self.is_at_end:
74 self.index = len(self.entries)
75 return self.entries[-self.index]
76
77 def back(
78 self,

Callers 3

test_is_at_startMethod · 0.80
test_firstMethod · 0.80
test_forwardMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_is_at_startMethod · 0.64
test_firstMethod · 0.64
test_forwardMethod · 0.64