shutil.tail(file, lines)
8 Nov
2011
8 Nov
'11
10:20 a.m.
This is something I need to do every once in a while and I think it would be a good addition for shutil module. Here: http://stackoverflow.com/questions/136168/get-last-n-lines-of-a-file-with-py... ...is a nice implementation which appears to be a good compromise in terms of speed and memory consumption (it reads the file in chunks, no more than 1024 bytes per-read). What do you think? --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/
4524
Age (days ago)
4524
Last active (days ago)
6 comments
4 participants
participants (4)
-
Antoine Pitrou
-
Giampaolo Rodolà
-
John O'Connor
-
Matt Joiner