On Thu, Jan 20, 2011 at 2:05 PM, Bruce Leban
<bruce@leapyear.org> wrote:
On Thu, Jan 20, 2011 at 11:47 AM, 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] ...
We use parenthesis for tuples and avoid the ambiguity by writing (1,).
In the same way, we could require your examples to be written ['b':1,] and [1:2,]
Please, not this. I like the idea of syntactic support for the odict, but no need to spread the (foo,) syntax around. It's too easy to misinterpret when you do a quick scan of a body of code.