]> granicus.if.org Git - python/commitdiff
Clarify the ordering of dictionary keys.
authorRaymond Hettinger <python@rcn.com>
Thu, 25 Nov 2004 05:16:19 +0000 (05:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 25 Nov 2004 05:16:19 +0000 (05:16 +0000)
Doc/lib/libstdtypes.tex

index b2bb3787621569444403f77c826b95feedfd7808..3cb2e5c39ba24b1950c923d519c92e8ab2cd0c82 100644 (file)
@@ -1367,8 +1367,10 @@ in the map.
 
 \item[(2)] \versionadded{2.2}
 
-\item[(3)] Keys and values are listed in random order.  If
-\method{items()}, \method{keys()}, \method{values()},
+\item[(3)] 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.
+If \method{items()}, \method{keys()}, \method{values()},
 \method{iteritems()}, \method{iterkeys()}, and \method{itervalues()}
 are called with no intervening modifications to the dictionary, the
 lists will directly correspond.  This allows the creation of