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