diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-06-09 19:03:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-06-09 19:03:16 (GMT) |
commit | a04d118586cf366ffd255a07fb682982894aa4d6 (patch) | |
tree | 90e7a948c0263e28a6a8948aad3b889df9a6e947 | |
parent | 242508160eb6520cca0f7a831449987f3ea1fba0 (diff) | |
download | cpython-a04d118586cf366ffd255a07fb682982894aa4d6.zip cpython-a04d118586cf366ffd255a07fb682982894aa4d6.tar.gz cpython-a04d118586cf366ffd255a07fb682982894aa4d6.tar.bz2 |
Describe startswith()/endswiith() change; add reminder about wsgiref
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index eedcaa3..77a6fd4 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -2,6 +2,7 @@ \usepackage{distutils} % $Id$ +% wsgiref section % Fix XXX comments % Count up the patches and bugs @@ -1098,6 +1099,17 @@ Some examples: (Implemented by Fredrik Lundh following a suggestion by Raymond Hettinger.) +\item The \method{startswith()} and \method{endswith()} methods +of string types now accept tuples of strings to check for. + +\begin{verbatim} +def is_image_file (filename): + return filename.endswith(('.gif', '.jpg', '.tiff')) +\end{verbatim} + +(Implemented by Georg Brandl following a suggestion by Tom Lynn.) +% RFE #1491485 + \item The \function{min()} and \function{max()} built-in functions gained a \code{key} keyword parameter analogous to the \code{key} argument for \method{sort()}. This parameter supplies a function that @@ -2015,6 +2027,11 @@ Marc-Andr\'e Lemburg.} \end{seealso} +%====================================================================== +%\subsection{The wsgiref package\label{module-wsgiref}} + +% XXX write this + % ====================================================================== \section{Build and C API Changes\label{build-api}} |