Why not simply

_, x, _, y = f()

? This seems easier to read and understand. _ is a valid variable but is 
typically used for superfluous assignment.

On Monday, November 23, 2015 at 9:56:27 AM UTC-8, Sisyphuss wrote:
>
> OK, so if I have a function which returns a tuple (a,b,c,d), 
> but I only want the 2nd and 4th value, the most concise way is
>
> (x,y) = f()[[2;4]]
>
>

Reply via email to