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

Method last

bpython/history.py:173–177  ·  view source on GitHub ↗

Move forward to the end of the history.

(self)

Source from the content-addressed store, hash-verified

171 return self.index
172
173 def last(self) -> str:
174 """Move forward to the end of the history."""
175 if not self.is_at_start:
176 self.index = 0
177 return self.entries[0]
178
179 @property
180 def is_at_end(self) -> bool:

Callers 2

test_is_at_endMethod · 0.80
test_lastMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_is_at_endMethod · 0.64
test_lastMethod · 0.64