[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.169, 1.170

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Nov 25 06:16:24 CET 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29014
Modified Files:
	libstdtypes.tex 
Log Message:
Clarify the ordering of dictionary keys.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- libstdtypes.tex	11 Nov 2004 06:14:05 -0000	1.169
+++ libstdtypes.tex	25 Nov 2004 05:16:19 -0000	1.170
@@ -1367,8 +1367,10 @@
 
 \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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /