]> granicus.if.org Git - python/commitdiff
Describe startswith()/endswiith() change; add reminder about wsgiref
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 9 Jun 2006 19:03:16 +0000 (19:03 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 9 Jun 2006 19:03:16 +0000 (19:03 +0000)
Doc/whatsnew/whatsnew25.tex

index eedcaa355f98e492ad89adaad17efb7996423dc6..77a6fd49c7ce37ef5c7cd07537ff5f0d8b51dec6 100644 (file)
@@ -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}}