]> granicus.if.org Git - python/commitdiff
Add item
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 14 Jun 2006 13:59:15 +0000 (13:59 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 14 Jun 2006 13:59:15 +0000 (13:59 +0000)
Doc/whatsnew/whatsnew25.tex

index ac2ede806035efb4eeb0bdac2f96aeccb8d71b8f..7a9ea2f111a0227c9beb3adf94ac083ebc419f24 100644 (file)
@@ -1373,6 +1373,12 @@ ts = datetime.strptime('10:13:15 2006-03-07',
                        '%H:%M:%S %Y-%m-%d')
 \end{verbatim}
 
+\item The \method{SequenceMatcher.get_matching_blocks()} method
+in the \module{difflib} module now guarantees to return a minimal list
+of blocks describing matching subsequences.  Previously, the algorithm would
+occasionally break a block of matching elements into two list entries.
+(Enhancement by Tim Peters.)
+
 \item The \module{doctest} module gained a \code{SKIP} option that
 keeps an example from being executed at all.  This is intended for
 code snippets that are usage examples intended for the reader and