[Python-checkins] CVS: python/dist/src/Doc/lib librfc822.tex,1.32,1.33

Fred L. Drake fdrake@users.sourceforge.net
Tue, 22 May 2001 08:12:48 -0700


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

Modified Files:
	librfc822.tex 
Log Message:

Update to add get() and setdefault() as supported mapping operations, and
add a list of the mapping methods which are not supported (per Barry's
comments).


Index: librfc822.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/librfc822.tex,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** librfc822.tex	2001/05/22 14:36:30	1.32
--- librfc822.tex	2001/05/22 15:12:46	1.33
***************
*** 216,224 ****
  \code{\var{m}.getheader(name)} but raises \exception{KeyError} if
  there is no matching header; and \code{len(\var{m})},
  \code{\var{m}.has_key(name)}, \code{\var{m}.keys()},
! \code{\var{m}.values()} and \code{\var{m}.items()} act as expected
  (and consistently).  \class{Message} instances also support the
  mapping writable interface \code{\var{m}[name] = value} and \code{del
! \var{m}[name]}.
  
  Finally, \class{Message} instances have two public instance variables:
--- 216,230 ----
  \code{\var{m}.getheader(name)} but raises \exception{KeyError} if
  there is no matching header; and \code{len(\var{m})},
+ \code{\var{m}.get(name\optional{, deafult})},
  \code{\var{m}.has_key(name)}, \code{\var{m}.keys()},
! \code{\var{m}.values()} \code{\var{m}.items()}, and
! \code{\var{m}.setdefault(name\optional{, default})} act as expected
  (and consistently).  \class{Message} instances also support the
  mapping writable interface \code{\var{m}[name] = value} and \code{del
! \var{m}[name]}.  \class{Message} objects do not support the
! \method{clear()}, \method{copy()}, \method{popitem()}, or
! \method{update()} methods of the mapping interface.  (Support for
! \method{.get()} and \method{.setdefault()} was only added in Python
! 2.2.)
  
  Finally, \class{Message} instances have two public instance variables: