Re:Migrating to Python 3 with pleasure
by StavrosK on Monday February 05, 2018 @03:44AM
(#16307499)
A section called "CPython implementation detail" looks like the very antithesis of a guarantee, to me.
[ Parent
| on HN ]
My apologies. I looked for the answer I knew was there, and quoted the wrong section because it matched what I was looking for.
I should have quoted the next section:
> If items(), keys(), values(), iteritems(), iterkeys(), and itervalues() are called with no intervening modifications to the dictionary, the lists will directly correspond.
Curiously, the "Dictionary view objects" section at https://docs.python.org/2.7/library/stdtypes.html#dictionary... has the same "Keys and values are iterated over in an arbitrary order which is non-random ..." text, but without being inside of a "CPython implementation detail" box.