Dictionaries should not be assumed to keep their orderings anyway.
That's why there's OrderredDict.
Unless the language explicitly says that dicts hold their order, even if they do, it's an implementation detail, and it should not be relied upon.
That's why there's OrderredDict.
Unless the language explicitly says that dicts hold their order, even if they do, it's an implementation detail, and it should not be relied upon.
(Dicts in 3.7 and ordered dicts)
https://stackoverflow.com/questions/50872498/will-ordereddic...