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
c40b25fd
Commit
c40b25fd
authored
Nov 10, 2010
by
Terry Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 2986: document heuristic for 3.1
parent
b0afa002
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Doc/library/difflib.rst
Doc/library/difflib.rst
+5
-0
No files found.
Doc/library/difflib.rst
View file @
c40b25fd
...
@@ -35,6 +35,11 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
...
@@ -35,6 +35,11 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
complicated way on how many elements the sequences have in common; best case
complicated way on how many elements the sequences have in common; best case
time is linear.
time is linear.
**Heuristic:** To speed-up matching, items whose duplicates appear more than 1% of
the time in sequences of at least 200 items are treated as junk. This has the
unfortunate side-effect of giving bad results for sequences constructed from
a small set of items. An option to turn off the heuristic will be added to
Python 3.2.
.. class:: Differ
.. class:: Differ
...
...
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