select.poll.poll() never blocks

Miles semanticist at gmail.com
Wed Feb 11 22:51:33 EST 2009


On Wed, Feb 11, 2009 at 10:47 PM, Rhodri James
<rhodri at wildebst.demon.co.uk> wrote:
> If you want to
> do it in Python, the only thing that springs to mind is
> periodically checking the size of the file and reading more
> when that changes.  You'll need to be very careful to keep
> what size you think the file is in sync with how much you've
> read!

See also this recipe:
http://code.activestate.com/recipes/157035/

-Miles



More information about the Python-list mailing list