|
|
|
|
|
by bratao
2737 days ago
|
|
Just to clarify. This behavior is expected since 3.6: As of Python 3.6, for the CPython implementation of Python, dictionaries remember the order of items inserted. This is considered an implementation detail in Python 3.6; you need to use OrderedDict if you want insertion ordering that's guaranteed across other implementations of Python. As of Python 3.7, this is no longer an implementation detail and instead becomes a language feature. [1] https://stackoverflow.com/questions/39980323/are-dictionarie... |
|