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

Ethan Furman ethan at stoneleaf.us
Mon Sep 12 18:46:00 EDT 2016


On 09/12/2016 09:27 AM, Gregory P. Smith wrote:

> For the regular dict (non kwargs or namespace __dict__) use case I would actually like to /see disorder preserved during iteration/.
>
> If we don't, we will eventually to find ourselves in a similar state we were in pre hash-randomization:

Does anyone have a short explanation of the interaction between hash randomization and this new always ordered dict?  Why doesn't one make the other useless?

--
~Ethan~


More information about the Python-Dev mailing list