I don’t know any method to do it. But you could use a list comprehension:
>>> [aList[i] for i in myIndices]
More Related Contents:
- Replace list object based on indexes of another list (Python)
- Finding the index of an item in a list
- Finding the index of an item in a list
- How do I get the last element of a list?
- How to remove an element from a list by index
- Access multiple elements of list knowing their index
- List comprehension vs. lambda + filter
- How to find all positions of the maximum value in a list?
- Calling filter returns [duplicate]
- In Python, how do I index a list with another list?
- Explicitly select items from a list or tuple
- Python: return the index of the first element of a list which makes a passed function true
- Tuple unpacking order changes values assigned
- Using an index to get an item
- Sort list by frequency
- Insert element in Python list after every nth element
- Python: filter list of list with another list
- Understand Python swapping: why is a, b = b, a not always equivalent to b, a = a, b?
- Finding the indices of matching elements in list in Python
- Implement list-like index access in Python
- Find the index of an item in a list of lists
- TypeError: ‘float’ object is not subscriptable
- how to keep elements of a list based on another list [duplicate]
- Indexing a list with an unique index
- Python Bool and int comparison and indexing on list with boolean values
- remove None value from a list without removing the 0 value
- Index all *except* one item in python
- Python IndexError: list index out of range
- interleaving 2 lists of unequal lengths [duplicate]
- How to find the max number(s) in a list with tied numbers