[Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered (original) (raw)

Tim Delaney timothy.c.delaney at gmail.com
Fri Sep 9 01:33:21 EDT 2016


On 9 September 2016 at 07:45, Chris Angelico <rosuav at gmail.com> wrote:

On Fri, Sep 9, 2016 at 6:22 AM, Victor Stinner <victor.stinner at gmail.com> wrote: > A nice "side effect" of compact dict is that the dictionary now > preserves the insertion order. It means that keyword arguments can now > be iterated by their creation order: >

This is pretty sweet! Of course, there are going to be 1172 complaints from people who's doctests have been broken, same as when hash randomization came in, but personally, I don't care. Thank you for landing this!

Are sets also ordered by default now? None of the PEPs appear to mention it.

Tim Delaney -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160909/b7dac0c4/attachment.html>



More information about the Python-Dev mailing list