Re: get the size of a dynamically changing file fast ?

2008-01-24 Thread Stef Mientki
Gabriel Genellina wrote: > En Wed, 23 Jan 2008 16:16:58 -0200, Stef Mientki > <[EMAIL PROTECTED]> escribió: > Yes, that's a small disadavantage of using a "high-level" language, where there's no flush available, and you assume it'll done automatically ;-) >>> >>> Uhm, there is a fl

Re: get the size of a dynamically changing file fast ?

2008-01-23 Thread Gabriel Genellina
En Wed, 23 Jan 2008 16:16:58 -0200, Stef Mientki <[EMAIL PROTECTED]> escribió: >>> Yes, that's a small disadavantage of using a "high-level" language, >>> where there's no flush available, and you assume it'll done >>> automatically ;-) >> >> Uhm, there is a flush method for Python's files. Fro

Re: get the size of a dynamically changing file fast ?

2008-01-23 Thread Stef Mientki
thanks Mike, sorry for the late reaction. I've it working perfect now. After all, os.stat works perfectly well, the problem was in the program that generated the file with increasing size, by truncating it after each block write, it apperently garantees that

Re: get the size of a dynamically changing file fast ?

2008-01-23 Thread Jason
On Jan 22, 3:22 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On Jan 22, 3:35 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > >> Mike Driscoll wrote: > > >>> On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > hello, > > I've a program (not written in

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: > On Jan 22, 3:35 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> Mike Driscoll wrote: >> >>> On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >>> hello, I've a program (not written in Python) that generates a few thousands >>>

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Mike Driscoll
On Jan 22, 3:35 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > >> hello, > > >> I've a program (not written in Python) that generates a few thousands > >> bytes per second, > >> these files are dumped in 2 buffe

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: > On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I've a program (not written in Python) that generates a few thousands >> bytes per second, >> these files are dumped in 2 buffers (files), at in interval time of 50 msec, >> the files can be read

Re: get the size of a dynamically changing file fast ?

2008-01-18 Thread Mike Driscoll
On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I've a program (not written in Python) that generates a few thousands > bytes per second, > these files are dumped in 2 buffers (files), at in interval time of 50 msec, > the files can be read by another program, to do further