MCPcopy 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
177def getitem(a, b):
178 "Same as a[b]."
179 return a[b]
180
181def indexOf(a, b):
182 "Return the first index of b in a."

Callers 8

test_dict_getitemMethod · 0.85
test_dict_getitemrefMethod · 0.85
test_object_getitemMethod · 0.85
test_sequence_getitemMethod · 0.85
test_tuple_getitemMethod · 0.85
check_list_get_itemMethod · 0.85

Calls

no outgoing calls

Tested by 8

test_dict_getitemMethod · 0.68
test_dict_getitemrefMethod · 0.68
test_object_getitemMethod · 0.68
test_sequence_getitemMethod · 0.68
test_tuple_getitemMethod · 0.68
check_list_get_itemMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…