Message252948
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.
""" |
|
Date |
User |
Action |
Args |
2015-10-13 18:19:45 | tim.peters | set | recipients:
+ tim.peters, Lewis Haley, Allan Lewis |
2015-10-13 18:19:45 | tim.peters | set | messageid: <1444760385.31.0.878056117427.issue25391@psf.upfronthosting.co.za> |
2015-10-13 18:19:45 | tim.peters | link | issue25391 messages |
2015-10-13 18:19:45 | tim.peters | create | |
|