diff options
author | Raymond Hettinger <python@rcn.com> | 2004-11-25 05:16:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-11-25 05:16:19 (GMT) |
commit | 23ce5848aab8358ca4e37a13b60b6bf26b18fbbb (patch) | |
tree | f042030694c5ce36a4c71824279826b4a80b0314 /Doc | |
parent | 3de9aa40ec5fa83148616bf88dc0c09a71b9c90f (diff) | |
download | cpython-23ce5848aab8358ca4e37a13b60b6bf26b18fbbb.zip cpython-23ce5848aab8358ca4e37a13b60b6bf26b18fbbb.tar.gz cpython-23ce5848aab8358ca4e37a13b60b6bf26b18fbbb.tar.bz2 |
Clarify the ordering of dictionary keys.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index b2bb378..3cb2e5c 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -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 |