4 ms·
BDFL declared Python dict to be ordered in 2017 — It can't be more official than that for Python https://mail.python.org/pipermail/python-dev/2017-December/1512
by d0mine 7y ago
BDFL declared Python dict to be ordered in 2017 — It can't be more official than that for Python https://mail.python.org/pipermail/python-dev/2017-December/151283.html https://mail.python.org/pipermail/python-dev/2017-December/1...
i.e., Python 3.7 (whatever implementation must keep the insertion order). CPython keeps the order since Python 3.6. Pypy even before that.
- user5994461 7y agoA barely legible email dump with 50 concurrent answers is supposed to be the clear official statement? Not to mention that developers just begin migrating to python 3 in 2017 and code still had to work on 2.7 that doesn't order.
- true_religion 7y agoI knew about it, because everyone was talking about it. The origination of the actual information is irrelevant. It was basically interesting gossip for a few weeks.
- anderskaseorg 7y agoThe official release notes for the following release is certainly a clear official statement. https://www.python.org/downloads/release/python-370/ https://www.python.org/downloads/release/python-370/ “The insertion-order preservation nature of dict objects is now an official part of the Python language spec.” (June 27, 2018)
- d0mine 7y agoThe ruling is the very first and only line from the link: > Make it so. "Dict keeps insertion order" is the ruling. Thanks!