Put more useful information into the docstring for utils.seq.window.

This commit is contained in:
Jeremy Fincher 2005-05-15 16:12:43 +00:00
parent 8693dbd5cc
commit 00fc0584ed

View File

@ -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.'