[issue45586] Use starred expressions in subscripts

2021-10-25 Thread Peter Tillema
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

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Peter Tillema
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