The Python Oracle

sys.stdin.readline() and input(): which one is faster when reading lines of input, and why?

This video explains
sys.stdin.readline() and input(): which one is faster when reading lines of input, and why?

--

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

--

Chapters
00:00 Question
00:52 Accepted answer (Score 27)
03:14 Answer 2 (Score 6)
04:09 Answer 3 (Score 4)
04:26 Answer 4 (Score 0)
04:40 Thank you

--

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

Question links:
[https://codereview.stackexchange.com/que...]: https://codereview.stackexchange.com/que...

Accepted answer links:
[aruisdante]: https://stackoverflow.com/users/3137499/...

Answer 3 links:
[https://github.com/python/cpython/blob/a...]: https://github.com/python/cpython/blob/a...

--

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

--

Tags
#python #python3x

#avk47