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

INADA Naoki songofacandy at gmail.com
Tue Nov 7 20:01:56 EST 2017


By the way, I only just realized I can delete a key to demonstrate non-order-preservation on py 3.6. So at least I know what to tell students now.

You can't. dict in Python 3.6 preserves insertion order even after key deletion.



More information about the Python-Dev mailing list