[Python-ideas] A sorted version of **kwargs
alexander.belopolsky at gmail.com
Thu Jan 20 21:57:34 CET 2011
On Thu, Jan 20, 2011 at 2:47 PM, Tim Delaney
<timothy.c.delaney at 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).
More information about the Python-ideas