[Tutor] .readlines() condensing multiple lines

Mike Hall michael.hall at critterpixstudios.com
Wed Mar 23 02:10:43 CET 2005


Unless I'm mistaken .readlines() is supposed to return a list, where 
each index is a line from the file that was handed to it. Well I'm 
finding that it's putting more than one line of my file into a single 
list entry, and separating them with \r. Surely there's a way to have a 
one to one correlation between len(list) and the lines in the file the 
list was derived from...? 



More information about the Tutor mailing list