[Python-ideas] syntax for set

Masklinn masklinn at masklinn.net
Mon Nov 15 23:09:39 CET 2010

On 2010-11-15, at 21:52 , MRAB wrote:
> I set is unordered, like a dict, so using {...} for both kind of makes
> sense, with the entries in the dict literal consisting of pairs
> separated by ":", which is why I would've liked {:}.

And as somebody suggested a few days/weeks ago, it leaves the door open to `[k:v]` as an ordereddict literal, as a parallel to {}/{:}.

More information about the Python-ideas mailing list