Isn't a write to a file that's opened as append atomic in most operating systems? At least in modern Unix systems. man open(2) should give more information about this.
Like: f = file("filename", "a") f.write(line) f.flush() if line fits into the stdio buffer. Otherwise os.write can be used. As this depends on the OS support for append, it is not portable. But neither is locking. And I am not sure if it works for NFS-mounted files. -- Piet van Oostrum <[EMAIL PROTECTED]> URL: http://www.cs.uu.nl/~piet [PGP] Private email: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list