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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 17 02:30:47 CEST 2009

Steven D'Aprano wrote:

> As far as I can see, there is no use-case for OrderedDict(dict) other 
> than to generate confused newbies.

It's possible that you don't care about the order
of the initial items, but want to preserve the
ordering of items added later.

Not sure how *likely* a requirement this is,


More information about the Python-ideas mailing list