diff --git a/src/utils/seq.py b/src/utils/seq.py index eee74669d..d021a1fef 100644 --- a/src/utils/seq.py +++ b/src/utils/seq.py @@ -28,7 +28,9 @@ ### def window(L, size): - """Returns a sliding 'window' through the list L of size size.""" + """list * size -> window iterable + + Returns a sliding 'window' through the list L of size size.""" assert not isinstance(L, int), 'Argument order swapped: window(L, size)' if size < 1: raise ValueError, 'size <= 0 disallowed.'