From 00fc0584ed8c28d9a2dffbeb1236597990c4c38a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 15 May 2005 16:12:43 +0000 Subject: [PATCH] Put more useful information into the docstring for utils.seq.window. --- src/utils/seq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.'