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

Guido van Rossum guido at python.org
Thu Sep 8 17:25:07 EDT 2016


On Thu, Sep 8, 2016 at 1:36 PM, Guido van Rossum <guido at python.org> wrote:

IIUC there's one small thing we might still want to change somewhere after 3.6b1 but before 3.6rc1: the order is not preserved when you delete some keys and then add some other keys. Apparently PyPy has come up with a clever solution for this, and we should probably adopt it, but it's probably best not to hurry that for 3.6b1.

It turns out I was mistaken. Naoki's implementation does preserve order across deletions. So we are already up to the standard set by PyPy. Go Naoki!!

PS. As a consequence we're also going to change 520. Sit tight!

-- --Guido van Rossum (python.org/~guido)



More information about the Python-Dev mailing list