Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
eedc6884
Commit
eedc6884
authored
Jun 11, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for get_grouped_opcodes().
parent
c0a8970d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
Doc/lib/libdifflib.tex
Doc/lib/libdifflib.tex
+17
-2
No files found.
Doc/lib/libdifflib.tex
View file @
eedc6884
...
@@ -81,7 +81,9 @@
...
@@ -81,7 +81,9 @@
\function
{
time.ctime()
}
. If not specified, the strings default to blanks.
\function
{
time.ctime()
}
. If not specified, the strings default to blanks.
\file
{
Tools/scripts/diff.py
}
is a command-line front-end for this
\file
{
Tools/scripts/diff.py
}
is a command-line front-end for this
function.
function.
\versionadded
{
2.3
}
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
get
_
close
_
matches
}{
word, possibilities
\optional
{
,
\begin{funcdesc}
{
get
_
close
_
matches
}{
word, possibilities
\optional
{
,
...
@@ -212,7 +214,9 @@ emu
...
@@ -212,7 +214,9 @@ emu
\function
{
time.ctime()
}
. If not specified, the strings default to blanks.
\function
{
time.ctime()
}
. If not specified, the strings default to blanks.
\file
{
Tools/scripts/diff.py
}
is a command-line front-end for this
\file
{
Tools/scripts/diff.py
}
is a command-line front-end for this
function.
function.
\versionadded
{
2.3
}
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
IS
_
LINE
_
JUNK
}{
line
}
\begin{funcdesc}
{
IS
_
LINE
_
JUNK
}{
line
}
...
@@ -397,6 +401,17 @@ replace a[3:4] (x) b[2:3] (y)
...
@@ -397,6 +401,17 @@ replace a[3:4] (x) b[2:3] (y)
\end{verbatim}
\end{verbatim}
\end{methoddesc}
\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
}{}
\begin{methoddesc}
{
ratio
}{}
Return a measure of the sequences' similarity as a float in the
Return a measure of the sequences' similarity as a float in the
range [0, 1].
range [0, 1].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment