April 25, 2012
2:03 a.m.
Why not repeat the same practice as is currently in place for range, enumerate, etc. Take 3 arguments, the iterables, the repeat minimum size and the repeat maximum size. If the third argument is None, just treat the minimum as the maximum (yielding the current behavior). Most things in python have gobs of keyword arguments and most of itertools has relatively few. I don't think it is going to harm anyone to give them a few more toys to play with.