ok,what does "start, stop = 0, start" in the code mean?
it's really strange.how does it work?

code:
def interval(start, stop=None, step=1):
    'Imitates range() for step > 0'
    if stop is None:
        start, stop = 0, start
    result = []
    i = start
    while i < stop:
        result.append(i)
        i += step
    return result

print interval(10)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to