Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.077 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'subject:file': 0.07; 'subject:same': 0.07; '\xc2\xa0i': 0.16; 'options': 0.25; 'database,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'to:name:python-list': 0.33; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'two': 0.37; 'conditions.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'race': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8sQ2pv3VCWnvlr+KY2lH6PKdjLIdzU3LmqdNimE1zZw=; b=kPcfQbYZxfq0sDfnGjeXzqUKp2T3tJddApKwf38Y+7VIu2HkA8Q+sNmenh32TVeeTg sX7p+TiZ+g8snuAsar7VLwrPl1zcWI3qA4bG4SQyiUb+uRlPdWQUIlgjdAMhj2t2PoWw L6mXJq5vvNuR6PEg1gMoq54LasvdIZhRqvIuO0Ovk5OIleLINysMAa8A2WZ/r5KDFQ0V 0D6bATwaMihxVigtYx7edMvuw5IfvBRCEqoY2w7lIgz3Rv53sjeO3JKTh2roC25FK+lx Qm88vy/7/04O97CQH9S4rz6V6xwMzTSNmYTKb/sKTjm7MPSeyR5TFxku9L50UhV/SARa jwCA== MIME-Version: 1.0 X-Received: by 10.50.111.4 with SMTP id ie4mr28123837igb.1.1373518629678; Wed, 10 Jul 2013 21:57:09 -0700 (PDT) Date: Wed, 10 Jul 2013 22:57:09 -0600 Subject: Concurrent writes to the same file From: Jason Friedman To: python-list Content-Type: multipart/alternative; boundary=089e0141aa1203e46804e1353aae X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373518632 news.xs4all.nl 15887 [2001:888:2000:d::a6]:47290 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50413 --089e0141aa1203e46804e1353aae Content-Type: text/plain; charset=UTF-8 Other than using a database, what are my options for allowing two processes to edit the same file at the same time? When I say same time, I can accept delays. I considered lock files, but I cannot conceive of how I avoid race conditions. --089e0141aa1203e46804e1353aae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Other than using a database, what are my options for allow= ing two processes to edit the same file at the same time? =C2=A0When I say = same time, I can accept delays. =C2=A0I considered lock files, but I cannot= conceive of how I avoid race conditions.
--089e0141aa1203e46804e1353aae--