Debugging fail in #Python: I had a generator function:
def them():
for thing in some_things():
yield thing
But I wanted to quickly try changing it to use a helper that returned a list, so I just added that code at the top:
def them():
return them_from_somewhere_else()
for thing in some_things():
yield thing
Took me a while to figure out why `list(them())` was always an empty list.