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 Dennis Sweeney, Zeturic, ammar2, corona10, gregory.p.smith, gvanrossum, josh.r, pmpp, serhiy.storchaka, tim.peters, vstinner
Date 2020-10-23.01:10:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603415410.95.0.0735771921927.issue41972@roundup.psfhosted.org>
In-reply-to
Content
Note that Sunday doesn't care (at all) where mismatches occur. The "natural" way to add Sunday: follow pure C-P unless/until it finds a mismatching position. Pure C-P then computes a specific shift. Nothing about that changes. But something is added: also compute the shift Sunday suggests, and pick the larger of that and what C-P computed.

C-P and Sunday both have cases where they can justify "supernaturally large" shifts (i.e., as long as len(needle), or even that +1 for Sunday), and they're not always the same cases.
History
Date User Action Args
2020-10-23 01:10:10tim.peterssetrecipients: + tim.peters, gvanrossum, gregory.p.smith, vstinner, pmpp, serhiy.storchaka, josh.r, ammar2, corona10, Dennis Sweeney, Zeturic
2020-10-23 01:10:10tim.peterssetmessageid: <1603415410.95.0.0735771921927.issue41972@roundup.psfhosted.org>
2020-10-23 01:10:10tim.peterslinkissue41972 messages
2020-10-23 01:10:10tim.peterscreate