Hi,
Is there a simpler way to yield all elements of a sequence than this?
for x in xs:
    yield x

I tried googling but fond only the other direction (turning a generator
into a list with "list(my_generator())".

Sebastian


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

Reply via email to