minor change

master
Abhinav Sarkar 2008-08-28 08:02:44 +00:00
parent a13757f87c
commit 6f7d8a055d
1 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ class LazyList(object):
def LazyListIterator():
count = start
predicate = ((lambda: True) if stop is None
else (lambda: count < stop))
predicate = (stop is None) and (lambda: True) or (lambda: count < stop)
while predicate():
try:
yield self[count]