For example, if I do something like the following:
def test():
yield from range(100)
testing = test()
iter(testing)
If the iter function returns an iterator, but the result of the function call isn't assigned to a variable, why does running print(list(testing)) or similar return all the values? I thought converting a generator would consume the items inside.