Is there a one-line expression for:
for thing in generator: yield thing
I tried yield generator to no avail.
yield generator
You can use a list comprehension to get all of the elements out of a generator (assuming the generator ends):
[x for x in generator]