write to the same file from multiple processes at the same time?

Jp Calderone exarkun at divmod.com
Fri May 27 18:21:04 EDT 2005


On 27 May 2005 15:10:16 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote:
>Peter Hansen <peter at engcorp.com> writes:
>> And PySQLite conveniently wraps the relevant calls with retries when
>> the database is "locked" by the writing process, making it roughly a
>> no-brainer to use SQLite databases as nice simple log files where
>> you're trying to write from multiple CGI processes like the OP wanted.
>
>Oh, ok.  But what kind of locks does it use?

It doesn't really matter, does it?

I'm sure the locking mechanisms it uses have changed between different releases, and may even be selected based on the platform being used.

Jp



More information about the Python-list mailing list