MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_item

Function get_item

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

Source from the content-addressed store, hash-verified

467 return 0 <= offset+imin and offset+imax+itemsize <= memlen
468
469def get_item(lst, indices):
470 for i in indices:
471 lst = lst[i]
472 return lst
473
474def memory_index(indices, t):
475 """Location of an item in the underlying memory."""

Callers 1

verifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected