pytoolz/toolz — pull request #113 by mrocklin (2013-11-28 00:29:21+00:00)
Title: sliding window aborts if iterator is too short

Current behavior results in an iterator that contains a tuple of size shorter than `n`. I'm not sure what expected behavior is in this situation.

This commit allows the assertion that all elements coming out of `sliding_window` have length `n`.