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 Springem Springsbee, terry.reedy, tim.peters
Date 2018-10-26.19:19:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540581552.99.0.788709270274.issue35079@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, I find this too hard to follow.  At the end:

> ['TA', 'CA'] # Missing the substring 'CA'

the comment claims it's missing 'CA', while the output plainly shows it's _not_ missing 'CA'.

If your complaint is that's missing 'AC', yes, it is.  It's not intended to find _overlapping_ matches at all (read the docs).  The longest matching blocks in

TAGACCA
ATACA

are in fact TA, CA, and AC, but after the leftmost-longest TA is matched first, AC no longer exists _to_ match in the second string.  Only CA does.
History
Date User Action Args
2018-10-26 19:19:13tim.peterssetrecipients: + tim.peters, terry.reedy, Springem Springsbee
2018-10-26 19:19:12tim.peterssetmessageid: <1540581552.99.0.788709270274.issue35079@psf.upfronthosting.co.za>
2018-10-26 19:19:12tim.peterslinkissue35079 messages
2018-10-26 19:19:12tim.peterscreate