RE: https://hachyderm.io/@nedbat/116150179474021938

The answer to the mystery: because my function had a `yield` in it, it was compiled as a generator. But executing the function never ran `yield`, so iterating it produced an empty sequence. The value from the return statement is ignored.

TBH, I know there is a way to get the returned value, but I have never needed to, and I don't know how.

The solution was to delete the code after the return.

@nedbat you could also "yield from" instead of the "return" I think
@liskin I didn't want it to stay a generator at all, I was just quick-hacking some code to see if the new idea would work!
@nedbat fair enough

(I come from a strong typing background so naturally I started with the idea to keep the type - a generator - to avoid having to think about and potentially change every use site)
@liskin I never use `Generator[T]` for generators anyway, I use `Iterable[T]`, since that all that callers expect of it.
@nedbat so do I to be fair 😁