Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libdifflib.tex @ 29404:8c5a6853a02a legacy-trunk
Add docs for get_grouped_opcodes().
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Wed, 11 Jun 2003 07:50:44 +0000 |
| parents | e6b0a406dc31 |
| children | bbc944e1fecc 8c13ab69ba4f |
line wrap: on
line diff
--- a/Doc/lib/libdifflib.tex Wed Jun 11 00:18:09 2003 +0000 +++ b/Doc/lib/libdifflib.tex Wed Jun 11 07:50:44 2003 +0000 @@ -81,7 +81,9 @@ \function{time.ctime()}. If not specified, the strings default to blanks. \file{Tools/scripts/diff.py} is a command-line front-end for this - function. + function. + + \versionadded{2.3} \end{funcdesc} \begin{funcdesc}{get_close_matches}{word, possibilities\optional{, @@ -212,7 +214,9 @@ \function{time.ctime()}. If not specified, the strings default to blanks. \file{Tools/scripts/diff.py} is a command-line front-end for this - function. + function. + + \versionadded{2.3} \end{funcdesc} \begin{funcdesc}{IS_LINE_JUNK}{line} @@ -397,6 +401,17 @@ \end{verbatim} \end{methoddesc} +\begin{methoddesc}{get_grouped_opcodes}{\optional{n}} + Return a generator of groups with up to \var{n} lines of context. + + Starting with the groups returned by \method{get_opcodes()}, + this method splits out smaller change clusters and eliminates + intervening ranges which have no changes. + + The groups are returned in the same format as \method{get_opcodes()}. + \versionadded{2.3} +\end{methoddesc} + \begin{methoddesc}{ratio}{} Return a measure of the sequences' similarity as a float in the range [0, 1].
