Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
el_oni
· 2y ago · 0 comments
P.s. to make that function an actual generator you could use
yield from
Instead of
return
Comments
[–]
keeganpoppen
2y ago
the
function
isn't a generator, but that value is a generator expression:
https://peps.python.org/pep-0289/