John Salerno wrote:

> You can probably tell what I'm doing. Read a list of lines from a file,
> and then I want to slice off the '\n' character from each line.

If you are not concerned about memory consumption there is also

open(filename).read().splitlines()

Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to