Hacker News new | ask | show | jobs
by el_oni 848 days ago
P.s. to make that function an actual generator you could use

yield from

Instead of

return

1 comments

the function isn't a generator, but that value is a generator expression: https://peps.python.org/pep-0289/