MCPcopy Index your code
hub / github.com/python/cpython / get_item

Function get_item

Lib/test/test_buffer.py:481–484  ·  view source on GitHub ↗
(lst, indices)

Source from the content-addressed store, hash-verified

479 return 0 <= offset+imin and offset+imax+itemsize <= memlen
480
481def get_item(lst, indices):
482 for i in indices:
483 lst = lst[i]
484 return lst
485
486def memory_index(indices, t):
487 """Location of an item in the underlying memory."""

Callers 3

verifyMethod · 0.85
test_tuple_get_itemMethod · 0.85
test_list_get_itemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…