3 ms·
Your split and join seem redundnant, and open defaults to read-only. print open('whatever.file').readlines()[:-10] But still, don't do that on any log too b
by jodrellblank 15y ago
Your split and join seem redundnant, and open defaults to read-only.
print open('whatever.file').readlines()[:-10]
But still, don't do that on any log too big to read into memory.