3 ms·
Oh, interesting. The documentation there also says > They have become less important now that the built-in dict class gained the ability to remember insertion
by tommiegannert 3y ago
Oh, interesting.
The documentation there also says
> They have become less important now that the built-in dict class gained the ability to remember insertion order (this new behavior became guaranteed in Python 3.7).
https://docs.python.org/3/library/collections.html#ordereddict-objects https://docs.python.org/3/library/collections.html#ordereddi...
It assumes iterators are stable (and valid) under insertion, and I can't find any docs on that for either. Since you (AFAIK) can't create an iterator at a specific key, we also couldn't use keys as the "hand."