[Python-Dev] Guarantee ordered dict literals in v3.7?

Nathaniel Smith njs at pobox.com
Fri Dec 15 01:04:19 EST 2017


On Dec 14, 2017 21:30, "Raymond Hettinger" <raymond.hettinger at gmail.com>
wrote:



> On Dec 14, 2017, at 6:03 PM, INADA Naoki <songofacandy at gmail.com> wrote:
>
> If "dict keeps insertion order" is not language spec and we
> continue to recommend people to use OrderedDict to keep
> order, I want to optimize OrderedDict for creation/iteration
> and memory usage.  (See https://bugs.python.org/issue31265#msg301942 )

I support having regular dicts maintain insertion order but am opposed to
Inada changing the implementation of collections.OrderedDict   We can have
the first without having the second.


It seems like the two quoted paragraphs are in vociferous agreement.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171214/9243603a/attachment.html>


More information about the Python-Dev mailing list