Addendum: I implement the form that continues tailing, waiting for new data. I think the naive form "last X lines" is a little trivial to put in stdlib.
On Wed, Nov 9, 2011 at 8:24 AM, Matt Joiner firstname.lastname@example.org wrote:
+1 This is an excellent idea. I reimplement this very often.
On Wed, Nov 9, 2011 at 5:43 AM, Giampaolo Rodolà email@example.com wrote:
2011/11/8 John O'Connor firstname.lastname@example.org:
There is also a more general solution: the reverse file iterator, started here but never finished: http://bugs.python.org/issue1677872
Oh, nice! That would certainly be better.
--- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ _______________________________________________ Python-ideas mailing list Pythonemail@example.com http://mail.python.org/mailman/listinfo/python-ideas