Russel Winder:

But note that:

[1,]       => 1-length list
[1, 2,]    => 2-length list
[1, 2, 3,] => 2-length list

Do not underestimate the power of allowed trailing commas.

In Python it's ignored:

[1,]
[1]
[1, 2,]
[1, 2]
[1, 2, 3,]
[1, 2, 3]

Bye,
bearophile

Reply via email to