[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.30,1.31

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 03 Jul 2002 05:02:04 -0700


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

Modified Files:
	whatsnew23.tex 
Log Message:
No need to be ambiguous about *how* extended slices and built-in types
have changed.

Uncomment a heading so that PendingDeprecationWarning doesn't seem so
out of place.


Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** whatsnew23.tex	26 Jun 2002 13:28:19 -0000	1.30
--- whatsnew23.tex	3 Jul 2002 12:02:01 -0000	1.31
***************
*** 344,356 ****
  
  Ever since Python 1.4 the slice syntax has supported a third
! ``stride'' argument, but the builtin sequence types have not supported
! this feature (it was initially included at the behest of the
! developers of the Numerical Python package).  This changes with Python
! 2.3.
  
! % XXX examples, etc.
  
  %======================================================================
! %\section{Other Language Changes}
  
  %Here are the changes that Python 2.3 makes to the core language.
--- 344,369 ----
  
  Ever since Python 1.4 the slice syntax has supported a third
! ``stride'' argument, but the built-in sequence types have not
! supported this feature (it was initially included at the behest of the
! developers of the Numerical Python package).  Starting with Python
! 2.3, the built-in sequence types do support the stride.
  
! For example, to extract the elements of a list with even indexes:
! 
! \begin{verbatim}
! >>> L = range(10)
! >>> L[::2]
! [0, 2, 4, 6, 8]
! \end{verbatim}
! 
! To make a copy of the same list in reverse order:
! 
! \begin{verbatim}
! >>> L[::-1]
! [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
! \end{verbatim}
  
  %======================================================================
! \section{Other Language Changes}
  
  %Here are the changes that Python 2.3 makes to the core language.
***************
*** 369,377 ****
  
  %\begin{PendingDeprecationWarning}
! A new warning PendingDeprecationWarning was added to provide
! direction on features which are in the process of being deprecated.
! The warning will not be printed by default.  To see the pending
! deprecations, use -Walways::PendingDeprecationWarning:: on the command line
! or warnings.filterwarnings().
  %\end{PendingDeprecationWarning}
  
--- 382,391 ----
  
  %\begin{PendingDeprecationWarning}
! A new warning, \exception{PendingDeprecationWarning} was added to
! provide direction on features which are in the process of being
! deprecated.  The warning will not be printed by default.  To see the
! pending deprecations, use
! \programopt{-Walways::PendingDeprecationWarning::} on the command line
! or use \function{warnings.filterwarnings()}.
  %\end{PendingDeprecationWarning}