[Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.24, 1.25

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Jan 4 19:29:59 EST 2004


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

Modified Files:
	whatsnew24.tex 
Log Message:
* Add various updates reflecting the last two weeks of checkins:
  timeit, base64, MSVC++ 7.1 build, METH_COEXISTS, and optimizations.

* Put in a comment suggesting an improvement to the rsplit() example.



Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** whatsnew24.tex	2 Jan 2004 06:57:50 -0000	1.24
--- whatsnew24.tex	5 Jan 2004 00:29:57 -0000	1.25
***************
*** 150,153 ****
--- 150,161 ----
  \end{verbatim}
  
+ % Consider replacing the above example with one that is less
+ % abstract and more suggestive of why the function is useful:
+ %       
+ %     >>> 'www.python.org'.split('.', 1)
+ %    ['www', 'python.org']
+ %    >>> 'www.python.org'.rsplit('.', 1)
+ %    ['www.python', 'org']       
+ 
  \item The \method{sort()} method of lists gained three keyword
  arguments, \var{cmp}, \var{key}, and \var{reverse}.  These arguments
***************
*** 260,264 ****
  \begin{itemize}
  
! \item Optimizations should be described here.
  
  \end{itemize}
--- 268,283 ----
  \begin{itemize}
  
! \item \function{list()}, \function{tuple()}, \function{map()},
!   \function{filter()}, and \function{zip()} now run several times
!   faster with non-sequence arguments that supply a \method{__len__()}
!   method.  Previously, the pre-sizing optimization only applied to
!   sequence arguments.
! 
! \item The unbound methods \method{list.__getitem__()},
!   \method{dict.__getitem__()}, and \method{dict.__contains__()} are
!   are now implemented as \class{method_descriptor} objects rather
!   than \class{wrapper_descriptor} objects.  This form of optimized
!   access doubles their performance and makes them more suitable for
!   use as arguments to functionals:  \samp{map(dict.__contains__, mydict)}.
  
  \end{itemize}
***************
*** 424,427 ****
--- 443,451 ----
    look-up process.
  
+   \item A new method flag, \code{METH_COEXISTS}, allows a function
+   defined in slots to co-exist with a PyCFunction having the same name.
+   This can halve the access to time to a method such as
+   \method{set.__contains__()}
+ 
  \end{itemize}
  
***************
*** 430,434 ****
  \subsection{Port-Specific Changes}
  
! Platform-specific changes go here.
  
  
--- 454,462 ----
  \subsection{Port-Specific Changes}
  
! \begin{itemize}
! 
! \item The Windows port now builds under MSVC++ 7.1 as well as version 6.
! 
! \end{itemize}
  
  
***************
*** 445,449 ****
  \begin{itemize}
  
! \item Details go here.
  
  \end{itemize}
--- 473,484 ----
  \begin{itemize}
  
! \item The \module{timeit} module now automatically disables periodic
!   garbarge collection during the timing loop.  This change makes
!   consecutive timings more comparable.
! 
! \item The \module{base64} module now has more complete RFC 3548 support
!   for Base64, Base32, and Base16 encoding and decoding, including
!   optional case folding and optional alternative alphabets.
!   (Contributed by Barry Warsaw.)
  
  \end{itemize}





More information about the Python-checkins mailing list