21 Jan
2011
21 Jan
'11
5:57 a.m.
On Thu, Jan 20, 2011 at 2:47 PM, Tim Delaney <timothy.c.delaney@gmail.com> wrote: ..
['b':1] would then be ambiguous (appears to be a slice of a list). More obvious in the case of [1:2] ...
x[1:2], x[1:2,], and x[1:2, 3:4] are all valid syntaxes. (NumPy uses the latter for multi-dimensional slicing.) However, I don't see an ambiguity here. We don't have an ambiguity between tuple syntax and function calls: (a, b, c) vs. f(a, b, c).