Suppose I have a list that I wish not to return but to yield values from. What is the most pythonic way to do that?
Here is what I mean. Thanks to some non-lazy comp
Use iter to create a list iterator e.g.
iter
return iter(List)
though if you already have a list, you can just return that, which will be more efficient.