Tim Peters added the comment:

BTW, the "leftmost longest contiguous" bit is messy to explain, so the main 
part of the docs don't explain it all (it's of no interest to 99.9% of users).  
Instead it's formally defined in the .find_longest_match() docs:

"""
If isjunk was omitted or None, find_longest_match() returns (i, j, k) such that 
a[i:i+k] is equal to b[j:j+k], where alo <= i <= i+k <= ahi and blo <= j <= j+k 
<= bhi. For all (i', j', k') meeting those conditions, the additional 
conditions k >= k', i <= i', and if i == i', j <= j' are also met. In other 
words, of all maximal matching blocks, return one that starts earliest in a, 
and of all those maximal matching blocks that start earliest in a, return the 
one that starts earliest in b.
"""

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25391>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to