[Python-Dev] Guarantee ordered dict literals in v3.7? (original) (raw)

Nathaniel Smith njs at pobox.com
Fri Dec 15 15:44:46 EST 2017


On Dec 15, 2017 10:50, "Tim Peters" <tim.peters at gmail.com> wrote:

[Eric Snow <ericsnowcurrently at gmail.com>]

Does that include preserving order after deletion?

Given that we're blessing current behavior:

Fortunately, this also matches OrderedDict.popitem().

It'd be nice if we could also support dict.popitem(last=False) to get the other behavior, again matching OrderedDict.

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



More information about the Python-Dev mailing list