MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / __len__

Method __len__

DSA/deque.py:59–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return ret
58
59 def __len__(self):
60 return (self.tail - self.head) % self.length
61
62 def __getitem__(self, key):
63 return self.buf[self.__index(key)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected