Re:Python dicts are now ordered
by squeaky-clean on Friday February 07, 2020 @02:43PM
(#22270006)
There's also the indication that this is official, and not just an implementation quirk. I still used OrderedDict in 3.6 because there was no guarantee 3.7 (or later) wouldn't silently break ordering on the standard dict. At least now it's unlikely to change because it will be considered a breaking change.
[ Parent
| on HN ]
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/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.
Re:Python dicts are now ordered
by user5994461 on Friday February 07, 2020 @05:01PM
(#22271490)
A 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.
Re:Python dicts are now ordered
by anderskaseorg on Friday February 07, 2020 @05:12PM
(#22271632)
The official release notes for the following release is certainly a clear official statement.
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)
Re:Python dicts are now ordered
by true_religion on Friday February 07, 2020 @05:03PM
(#22271522)
I 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.