[Python-ideas] shutil.tail(file, lines)

Matt Joiner anacrolix at gmail.com
Tue Nov 8 22:26:13 CET 2011


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 <anacrolix at gmail.com> wrote:
> +1 This is an excellent idea. I reimplement this very often.
>
> On Wed, Nov 9, 2011 at 5:43 AM, Giampaolo Rodolà <g.rodola at gmail.com> wrote:
>> 2011/11/8 John O'Connor <jxo6948 at rit.edu>:
>>> There is also a more general solution: the reverse file iterator, started
>>> here but never
>>> finished: http://bugs.python.org/issue1677872
>>> - John
>>
>> Oh, nice!
>> That would certainly be better.
>>
>> --- Giampaolo
>> http://code.google.com/p/pyftpdlib/
>> http://code.google.com/p/psutil/
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> http://mail.python.org/mailman/listinfo/python-ideas
>>
>



More information about the Python-ideas mailing list