_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
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...?
- Re: [Tutor] .readlines() condensing multiple lines Mike Hall
- Re: [Tutor] .readlines() condensing multiple lines Liam Clarke
- Re: [Tutor] .readlines() condensing multiple lines Kent Johnson
- Re: [Tutor] .readlines() condensing multiple lin... Liam Clarke
- Re: [Tutor] .readlines() condensing multiple... Kent Johnson
- Re: [Tutor] .readlines() condensing mul... Mike Hall
- Re: [Tutor] .readlines() condensing... Kent Johnson
- Re: [Tutor] .readlines() condensing multiple lines Mike Hall
- Re: [Tutor] .readlines() condensing multiple lines Alan Gauld