Paul Rubin wrote: > Peter Otten <__peter__ at web.de> writes: >> How would you implement stopmin()? > > Use itertools.takewhile I should have mentioned that I had already run into that -- let's call it -- off-by-one bug.