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

Fred L. Drake fdrake@users.sourceforge.net
Mon, 11 Jun 2001 20:31:58 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv3692/lib

Modified Files:
	libstdtypes.tex 
Log Message:

Fixed reference to table notes for {}.keys() and {}.items() -- these
references did not get updated when the notes were renumbered in a
previous update.

This fixes SF bug #432208.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** libstdtypes.tex	2001/05/25 04:24:37	1.59
--- libstdtypes.tex	2001/06/12 03:31:56	1.60
***************
*** 931,939 ****
            {a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
            {(3)}
!   \lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(2)}
    \lineiii{\var{a}.update(\var{b})}
            {\code{for k in \var{b}.keys(): \var{a}[k] = \var{b}[k]}}
            {(4)}
!   \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)}
    \lineiii{\var{a}.get(\var{k}\optional{, \var{x}})}
            {\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
--- 931,939 ----
            {a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
            {(3)}
!   \lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(3)}
    \lineiii{\var{a}.update(\var{b})}
            {\code{for k in \var{b}.keys(): \var{a}[k] = \var{b}[k]}}
            {(4)}
!   \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(3)}
    \lineiii{\var{a}.get(\var{k}\optional{, \var{x}})}
            {\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
***************
*** 970,975 ****
  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[(4)] \var{b} must be of the same type as \var{a}.
--- 970,975 ----
  modifications to the dictionary, the two lists will directly
  correspond.  This allows the creation of \code{(\var{value},
! \var{key})} pairs using \function{zip()}: \samp{pairs =
! zip(\var{a}.values(), \var{a}.keys())}.
  
  \item[(4)] \var{b} must be of the same type as \var{a}.