⬅︎ Back to To readline() or readlines()
No! Why have you left this error in place on a page with the top Google hit for "Python readlines vs readline". readline() DOES read in a line. To be exact, it reads from the buffer until it includes a newline and returns that as a string.
Comment
No! Why have you left this error in place on a page with the top Google hit for "Python readlines vs readline". readline() DOES read in a line. To be exact, it reads from the buffer until it includes a newline and returns that as a string.