Issue 2986: document heuristic for 3.1

This commit is contained in:
Terry Reedy 2010-11-10 17:50:26 +00:00
parent b0afa00254
commit c40b25fd68
1 changed files with 5 additions and 0 deletions

View File

@ -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
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