Re: looking for blocking on read of a real file (not socket or pipe)

2004-12-14 Thread elbertlev
I doubt that the recipe you recomended will work at all in the case of different processes. To do this right file has to be open in shared mode (by both programs). Python does not support shared access. In the case of one program, but different threads probably this will work. -- http://mail.pyth

Re: looking for blocking on read of a real file (not socket or pipe)

2004-12-14 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > I doubt that the recipe you recomended will work at all in the case of > different processes. To do this right file has to be open in shared > mode (by both programs). Python does not support shared access. > In the case of one program, but different threads probably t

Re: looking for blocking on read of a real file (not socket or pipe)

2004-12-14 Thread Peter Hansen
Steven wrote: I'm seeking a read method that will block until new data is available. Is there such a python function that does that? It may be relevant which platform(s) are of interest. Linux? Mac? Windows? All? The more cross-platform this needs to be, the less likely it exists... -- http://m

Re: looking for blocking on read of a real file (not socket or pipe)

2004-12-13 Thread Fredrik Lundh
"Steven" <[EMAIL PROTECTED]> 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