[Python-ideas] Possible method of distinguishing between set-literals, dict-literals, and odict-literals

Vitor Bosshard algorias at gmail.com
Tue Jun 16 23:25:40 CEST 2009

2009/6/16 Terry Reedy <tjreedy at udel.edu>

>  When you read OrderedDict([('a', '1'),('b', '2'), ('c', '3')]),
> OrderedDict({'a':1', 'b':'2', 'c':'3'}]

Wouldn't you lose the ordering in that case?

OrderedDict({'c':'3', 'a':'1', 'b':'2'}) produces the same result as the
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090616/2e482065/attachment.html>

More information about the Python-ideas mailing list