Hi Peter Clearly I misunderstood what Martin was saying :) I was comparing operations on lines via the file generator against first loading the file's lines into memory, and then performing the concatenation.
What does ".readlines()" do differently that makes it so much slower than ".read().splitlines(True)"? To me, the "one obvious way to do it" is ".readlines()". Caleb -- http://mail.python.org/mailman/listinfo/python-list