The Python Oracle

Do Python iterators formally require an __iter__ method?

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: Magical Minnie Puzzles

--

Chapters
00:00 Question
01:22 Accepted answer (Score 4)
02:40 Thank you

--

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

Question links:
[this]: https://www.programiz.com/python-program...
[this]: https://stackoverflow.com/questions/1915...
[this]: https://treyhunner.com/2016/12/python-it.../
[official Python tutorial section on iterators]: https://docs.python.org/3/tutorial/class...

Accepted answer links:
[data model documentation]: https://docs.python.org/3/library/stdtyp...

--

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

--

Tags
#python #iterator

#avk47