Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeeBombshell/Python-DSA
/ __getitem__
Method
__getitem__
DSA/deque.py:62–63 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
60
return
(self.tail - self.head) % self.length
61
62
def
__getitem__(self, key):
63
return
self.buf[self.__index(key)]
64
65
def
__setitem__(self, key, value):
66
self.buf[self.__index(key)] = value
Callers
nothing calls this directly
Calls
1
__index
Method · 0.95
Tested by
no test coverage detected