[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.142,1.143

akuchling@users.sourceforge.net akuchling@users.sourceforge.net
Thu, 24 Apr 2003 09:38:24 -0700


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv7518

Modified Files:
	whatsnew23.tex 
Log Message:
Add some more items

Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.142
retrieving revision 1.143
diff -C2 -d -r1.142 -r1.143
*** whatsnew23.tex	24 Apr 2003 13:23:43 -0000	1.142
--- whatsnew23.tex	24 Apr 2003 16:38:20 -0000	1.143
***************
*** 1086,1094 ****
  as described in section~\ref{section-slices} of this document.
  
  \item Dictionaries have a new method, \method{pop(\var{key}\optional{,
  \var{default}})}, that returns the value corresponding to \var{key}
  and removes that key/value pair from the dictionary.  If the requested
! key isn't present in the dictionary, \var{default} is returned if
! it's specified and \exception{KeyError} raised if it isn't.
  
  \begin{verbatim}
--- 1086,1100 ----
  as described in section~\ref{section-slices} of this document.
  
+ \item A new built-in function, \function{sum(\var{iterable}, \var{start}=0)}, 
+ adds up the numeric items in the iterable object and returns their sum. 
+ \function{sum()} only accepts numbers, meaning that you can't use it
+ to concatenate a bunch of strings, for example.   (Contributed by Alex
+ Martelli.)
+ 
  \item Dictionaries have a new method, \method{pop(\var{key}\optional{,
  \var{default}})}, that returns the value corresponding to \var{key}
  and removes that key/value pair from the dictionary.  If the requested
! key isn't present in the dictionary, \var{default} is returned if it's
! specified and \exception{KeyError} raised if it isn't.
  
  \begin{verbatim}
***************
*** 1398,1401 ****
--- 1404,1410 ----
  by Robert Weber).
  
+ \item The new \function{gc.get_referents(\var{object})} function returns a
+ list of all the objects referenced by \var{object}.
+ 
  \item The \module{getopt} module gained a new function,
  \function{gnu_getopt()}, that supports the same arguments as the existing
***************
*** 1525,1528 ****
--- 1534,1543 ----
  Ward and Nicholas FitzRoy-Dale.)
  
+ \item The new \module{platform} module contains a number of functions
+ that try to determine various properties of the platform you're
+ running on.  There are functions for getting the architecture, CPU
+ type, the Windows OS version, and even  the Linux distribution version.
+ (Contributed by Marc-Andr\'e Lemburg.)
+ 
  \item The parser objects provided by the \module{pyexpat} module
  can now optionally buffer character data, resulting in fewer calls to
***************
*** 1577,1581 ****
  (Sticking with Python 2.2 or 2.1 will not make your applications any
  safer because there are known bugs in the \module{rexec} module in
! those versions.  I repeat, if you're using \module{rexec}, stop using
  it immediately.)
  
--- 1592,1596 ----
  (Sticking with Python 2.2 or 2.1 will not make your applications any
  safer because there are known bugs in the \module{rexec} module in
! those versions.  To repeat: if you're using \module{rexec}, stop using
  it immediately.)