summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2005-03-20 19:52:18 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2005-03-20 19:52:18 (GMT)
commit511a3a81744e6528e3294267e294e79bee5778d8 (patch)
treeab6fce952cb2ddc12cfea21a369bdb95e5e4215a /Doc/whatsnew
parente9b1bf47180448db78792068901a09f256a7d598 (diff)
downloadcpython-511a3a81744e6528e3294267e294e79bee5778d8.zip
cpython-511a3a81744e6528e3294267e294e79bee5778d8.tar.gz
cpython-511a3a81744e6528e3294267e294e79bee5778d8.tar.bz2
Add item
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew25.tex12
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 3d5a32a..1a82844 100644
--- a/Doc/whatsnew/whatsnew25.tex
+++ b/Doc/whatsnew/whatsnew25.tex
@@ -120,7 +120,17 @@ Example:
(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.