There is also a more general solution: the reverse file iterator, started here but never finished: http://bugs.python.org/issue1677872
On Tue, Nov 8, 2011 at 1:27 PM, Giampaolo Rodolà email@example.com wrote:
Edit: after a better look it seems data gets stored in memory increasingly. We can see whether that is fixable someway though.
2011/11/8 Giampaolo Rodolà firstname.lastname@example.org:
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:
...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?
Python-ideas mailing list Pythonemail@example.com http://mail.python.org/mailman/listinfo/python-ideas