diff options
author | Raymond Hettinger <python@rcn.com> | 2003-06-11 07:50:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-06-11 07:50:44 (GMT) |
commit | 132fa373d1b5a7944f5210468d1a0aa087ddd1ac (patch) | |
tree | 87d593c3f7dfba07a52b89592cf5cb5a8ee70262 /Doc | |
parent | 807413d3b2474f4bff92cb2370134a1cf1cecf0b (diff) | |
download | cpython-132fa373d1b5a7944f5210468d1a0aa087ddd1ac.zip cpython-132fa373d1b5a7944f5210468d1a0aa087ddd1ac.tar.gz cpython-132fa373d1b5a7944f5210468d1a0aa087ddd1ac.tar.bz2 |
Add docs for get_grouped_opcodes().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libdifflib.tex | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Doc/lib/libdifflib.tex b/Doc/lib/libdifflib.tex index e28b39f..593416f 100644 --- a/Doc/lib/libdifflib.tex +++ b/Doc/lib/libdifflib.tex @@ -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 @@ emu \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 @@ replace a[3:4] (x) b[2:3] (y) \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]. |