[Python-checkins] python/dist/src/Doc/whatsnew whatsnew25.tex, 1.6, 1.7

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Sun Mar 20 20:52:20 CET 2005


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11740

Modified Files:
	whatsnew25.tex 
Log Message:
Add item

Index: whatsnew25.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew25.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- whatsnew25.tex	20 Mar 2005 19:26:30 -0000	1.6
+++ whatsnew25.tex	20 Mar 2005 19:52:18 -0000	1.7
@@ -120,7 +120,17 @@
 
 (Contributed by Raymond Hettinger.)
 
-% itertools.islice() now accepts None for the start and step arguments.
+\item The \function{itertools.islice()} function now accepts
+\code{None} for the start and step arguments.  This makes it more
+compatible with the attributes of slice objects, so that you can now write
+the following:
+
+\begin{verbatim}
+s = slice(5)     # Create slice object
+itertools.islice(iterable, s.start, s.stop, s.step)
+\end{verbatim}
+
+(Contributed by Raymond Hettinger.)
 
 \item New module: \module{spwd} provides functions for accessing the
 shadow password database on systems that support it.  



More information about the Python-checkins mailing list