I can do this with a generator:
def integers():
x = 1
while (True):
yield x
x += 1for i in integers(): Is there a more elegant/concise way? -- http://mail.python.org/mailman/listinfo/python-list
I can do this with a generator:
def integers():
x = 1
while (True):
yield x
x += 1for i in integers(): Is there a more elegant/concise way? -- http://mail.python.org/mailman/listinfo/python-list