I would love to be able to do
>>> A = numpy.array(((1,2),(3,4))) >>> idx = (0,0) >>> A[*idx]
and get
<
Try
A[tuple(idx)]
Unless you have a more complex use case that's not as simple as this example, the above should work for all arrays.