Nicolas Petton writes: > I agree, the patch is good as it is now, I'd like to have it > installed. Done. FWIW, if you would like me to push this: I have implemented the sliding window algorithm as suggested by John, but commented it out, and added a (hopefully not too wordy) note why we raise an error for now for negative indexes: