I can do this with a generator:

    def integers():
        x = 1
        while (True):
            yield x
            x += 1

for i in integers(): 

Is there a more elegant/concise way?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to