Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getitem
Function
getitem
Lib/operator.py:177–179 ·
view source on GitHub ↗
Same as a[b].
(a, b)
Source
from the content-addressed store, hash-verified
175
del a[b]
176
177
def
getitem(a, b):
178
"Same as a[b]."
179
return
a[b]
180
181
def
indexOf(a, b):
182
"Return the first index of b in a."
Callers
8
test_dict_getitem
Method · 0.85
test_dict_getitemref
Method · 0.85
test_dict_getitemwitherror
Method · 0.85
test_object_getitem
Method · 0.85
test_mapping_getoptionalitem
Method · 0.85
test_sequence_getitem
Method · 0.85
test_tuple_getitem
Method · 0.85
check_list_get_item
Method · 0.85
Calls
no outgoing calls
Tested by
8
test_dict_getitem
Method · 0.68
test_dict_getitemref
Method · 0.68
test_dict_getitemwitherror
Method · 0.68
test_object_getitem
Method · 0.68
test_mapping_getoptionalitem
Method · 0.68
test_sequence_getitem
Method · 0.68
test_tuple_getitem
Method · 0.68
check_list_get_item
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…