The Python Oracle

Fastest way to convert an iterator to a list

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: Puzzle Island

--

Chapters
00:00 Question
00:26 Accepted answer (Score 458)
00:35 Answer 2 (Score 37)
00:55 Answer 3 (Score 36)
04:07 Thank you

--

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

Answer 1 links:
[python 3.5]: https://www.python.org/dev/peps/pep-0448/
[the pythonic way]: https://stackoverflow.com/questions/5789...

Answer 2 links:
[simple_bechmark]: https://github.com/MSeifert04/simple_ben...
[image]: https://i.stack.imgur.com/f6grJ.png
[image]: https://i.stack.imgur.com/3Pht2.png
[here]: https://github.com/kederrac/itererator_t...

--

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

--

Tags
#python #iterator #listcomprehension

#avk47