This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients Allan Lewis, Lewis Haley, tim.peters
Date 2015-10-13.18:19:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444760385.31.0.878056117427.issue25391@psf.upfronthosting.co.za>
In-reply-to
Content
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.
"""
History
Date User Action Args
2015-10-13 18:19:45tim.peterssetrecipients: + tim.peters, Lewis Haley, Allan Lewis
2015-10-13 18:19:45tim.peterssetmessageid: <1444760385.31.0.878056117427.issue25391@psf.upfronthosting.co.za>
2015-10-13 18:19:45tim.peterslinkissue25391 messages
2015-10-13 18:19:45tim.peterscreate