MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / delete_last

Method delete_last

linked_lists/linked_deque.py:29–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 return self._delete_node(self._header._next)
28
29 def delete_last(self):
30 if self.is_empty():
31 raise Empty("Deque is empty")
32
33 return self._delete_node(self._trailer._previous)
34

Callers

nothing calls this directly

Calls 3

_delete_nodeMethod · 0.80
EmptyClass · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected