3 ms·
The analysis about the internal details is interesting, but it's not surprising, from http://docs.python.org/2/library/stdtypes.html#dict.items http://docs.pyth
by gus_massa 13y ago
The analysis about the internal details is interesting, but it's not surprising, from http://docs.python.org/2/library/stdtypes.html#dict.items http://docs.python.org/2/library/stdtypes.html#dict.items :
> CPython implementation detail: Keys and values are listed in an arbitrary order which is non-random, varies across Python implementations, and depends on the dictionary’s history of insertions and deletions.