Peter Tillema added the comment:
Right, I should have clarified it a bit more. I'm using NumPy arrays because
they allow indexing like this, where the input arguments are converted to a
tuple. So
a[1, 2, *[3, 4]]
is different than
a[[1, 2, *[3, 4]]]
This indeed only works on NumPy
New submission from Peter Tillema :
It would be nice if you could starred expressions in list indices, for example
this piece of code:
```
import numpy as np
a = np.array(0)
print(a[1, *[2, 3], 4])
```
--
components: Interpreter Core
messages: 404860
nosy: PeterTillema
priority