The Python Oracle

How do I know if a generator is empty from the start?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Meadow

--

Chapters
00:00 Question
00:23 Accepted answer (Score 74)
00:56 Answer 2 (Score 142)
01:22 Answer 3 (Score 47)
01:42 Answer 4 (Score 26)
02:31 Thank you

--

Full question
https://stackoverflow.com/questions/6616...

Answer 2 links:
[next()]: http://docs.python.org/3/library/functio...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #generator

#avk47