Personally, if I had a time machine I would pick a syntax like<br> set{...}<br>over
<br>
set([...])<br>but I don't have a time machine and even if I did I don't think I'd use it for that. The difference is that the former is special syntax, while the latter isn't. No matter what I do to the the varible r, r"string" is still a string, while set([...]) can be perverted.<br>
<br>However, given what we've got I can't really say that ([ instead of { is that big a deal.<br><br>--- Bruce<br><br><br><div class="gmail_quote">On Tue, Jun 16, 2009 at 5:25 PM, Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> writes:<br>
<br>
> On Tue, Jun 16, 2009 at 11:24 AM, Terry Reedy<<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br>
</div><div class="im">> > OrderedDict({'a':1', 'b':'2', 'c':'3'}]<br>
> ><br>
> ><br>
> >> How about ['a':'1', 'b':'2', 'c':'3']?<br>
><br>
> -100.<br>
<br>
</div>(Hey! I though the valid range of votes was -1 through +1, I didn't know<br>
we were giving the BDFL more than one vote! :-)<br>
<br>
Can you summarise what you dislike about the above syntax suggestion for<br>
ordered dict literal?<br>
<br>
--<br>
\ “If the desire to kill and the opportunity to kill came always |<br>
`\ together, who would escape hanging?” —Mark Twain, _Following |<br>
_o__) the Equator_ |<br>
<font color="#888888">Ben Finney<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br>