Sure, but why did you enable the -R flag?<p>We are talking about the default way of doing things in the most commonly by far used implementation.<p>I&#x27;m not saying someone should have relied on the specific ordering or that the code that does rely on it is a great way of doing things.<p>CPython2 did make that promise -<p><pre><code>    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.
</code></pre>
In other words, the order should be the same no matter how many times you restart the application.<p>It is a subtle source of bugs since it always worked in each specific version of CPython2 without the -R flag.