[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.20.2.5,1.20.2.6

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Wed, 15 Mar 2000 12:12:36 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Doc/lib
In directory weyr:/home/fdrake/projects/python/Doc-152p2/lib

Modified Files:
      Tag: release152p1-patches
	libstdtypes.tex 
Log Message:

Elaborate the note about {}.keys() and {}.values() based on comments
from Aahz Maruch <aahz@netcom.com> and François Pinard
<pinard@iro.umontreal.ca>.


Index: libstdtypes.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.20.2.5
retrieving revision 1.20.2.6
diff -C2 -r1.20.2.5 -r1.20.2.6
*** libstdtypes.tex	2000/03/06 16:57:06	1.20.2.5
--- libstdtypes.tex	2000/03/15 17:12:33	1.20.2.6
***************
*** 591,595 ****
  in the map.
  
! \item[(2)] Keys and values are listed in random order.
  
  \item[(3)] \var{b} must be of the same type as \var{a}.
--- 591,600 ----
  in the map.
  
! \item[(2)] Keys and values are listed in random order.  If
! \method{keys()} and \method{values()} are called with no intervening
! modifications to the dictionary, the two lists will directly
! correspond.  This allows the creation of \code{(\var{value},
! \var{key})} pairs using \function{map()}: \samp{pairs = map(None,
! \var{a}.values(), \var{a}.keys())}.
  
  \item[(3)] \var{b} must be of the same type as \var{a}.