Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __getitem__
Method
__getitem__
Lib/test/test_shelve.py:21–22 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
19
self.d = {}
20
21
def
__getitem__(self, key):
22
return
self.d[L1(key)]
23
24
def
__setitem__(self, key, value):
25
self.d[L1(key)] = value
Callers
nothing calls this directly
Calls
1
L1
Function · 0.85
Tested by
no test coverage detected