Message379391
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. |
|
Date |
User |
Action |
Args |
2020-10-23 01:10:10 | tim.peters | set | recipients:
+ tim.peters, gvanrossum, gregory.p.smith, vstinner, pmpp, serhiy.storchaka, josh.r, ammar2, corona10, Dennis Sweeney, Zeturic |
2020-10-23 01:10:10 | tim.peters | set | messageid: <1603415410.95.0.0735771921927.issue41972@roundup.psfhosted.org> |
2020-10-23 01:10:10 | tim.peters | link | issue41972 messages |
2020-10-23 01:10:10 | tim.peters | create | |
|