looking for blocking on read of a real file (not socket or pipe)
Fredrik Lundh
fredrik at pythonware.com
Mon Dec 13 15:11:57 EST 2004
"Steven" <steven.howe at verizon.net> wrote:
> I'm seeking a read method that will block until new data is available. Is
> there such a python function that does that?
read until end of file, wait a while, seek to position you tried to read from
when you reached the end, and read again. see:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/157035
(also see the comments, but ignore the last one; he is missing something)
</F>
More information about the Python-list
mailing list