Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:file': 0.07; 'subject:How': 0.09; 'closed,': 0.09; 'compatible.': 0.16; 'disk.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'posix': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'example': 0.23; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'replace': 0.27; 'message- id:@mail.gmail.com': 0.27; 'there.': 0.28; 'fri,': 0.30; 'file': 0.32; 'johnson': 0.32; 'says': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'christian': 0.34; 'open': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; '12,': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'delete': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'remove': 0.61; 'jul': 0.65; 'sounds': 0.71; 'subject:status': 0.84; 'rick': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ID3bDpvfcBxhLIJAEOuE9SAezMKSeUTUUOxmH7HU+OE=; b=elUGhckXleo3w0MJAPOIbIjx3wN5VuNQNSNjJs9Nqt+JmccZynUW6i/o+QD2yC7wUV 4qreJobdAOF0BGj6p9ByiSZnZxRjdfsL4S6FJh/m4e7lr5JuaUn3uIIYzqnrv+K4hYQT XPv/SPkf/zCL8tRgxrnuP/p3ItuAu6Mbd4gMyfo8GVFwn017M6BNQXF7pWIo87ILitqp kEwjfGsPOzHqMcf5ohofyBFWitSQZI37SMA31Z7Pgk/JN2OBWGPIi02WVkXTO2usALDv kVMmgrusL/s0cUFwVi52KBMEjBztD7c372SrdvzlBDwDfyedwL96x0PqdcxwgY71jjB/ RX3w== MIME-Version: 1.0 In-Reply-To: References: <4FF9F454.40207@shopzeus.com> <4ffecef4$0$6877$e4fe514c@news2.news.xs4all.nl> <4FFF0CB7.3030007@shopzeus.com> Date: Fri, 13 Jul 2012 12:12:01 +1000 Subject: Re: How to safely maintain a status file From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342145524 news.xs4all.nl 6902 [2001:888:2000:d::a6]:48056 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25237 On Fri, Jul 13, 2012 at 11:20 AM, Rick Johnson wrote: > On Jul 12, 2:39 pm, Christian Heimes wrote: >> Windows's file system layer is not POSIX compatible. For example >> you can't remove or replace a file while it is opened by a process. > > Sounds like a reasonable fail-safe to me. POSIX says that files and file names are independent. I can open a file based on its name, delete the file based on its name, and still have the open file there. When it's closed, it'll be wiped from the disk. ChrisA