portalocker in Win98

Richard Jones rjones at ekit-inc.com
Wed Jan 15 23:59:25 CET 2003

On Wed, 15 Jan 2003 7:37 pm, James Kew wrote:
> Thomas Heller wrote:
> > But even they may not be needed, there's the little known msvcrt
> > module included in standard Python, which also has a locking function.
> Again, this doesn't support blocking locks -- the docs say it polls for a
> lock 10 times at 1-second intervals before giving up. It also has the
> rather odd property of locking for a range of bytes in the file starting
> from the current file position.

The 10x 1-second rety is probably sufficient. I haven't seen the API, but that 
could probably be wrapped in a "while 1:", yes?

> It'd be nice if Roundup could run on Win98, not least because it was my
> Roundup installation (on NT) that Vic saw, liked, and had evangelised at
> him and it's a little embarassing that he now can't run it...

I agree - I claim Roundup is cross-platform, and it'd be nice if I wasn't 
lying :)


More information about the Python-list mailing list