Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.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.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'memory.': 0.07; 'modified': 0.07; 'cleanup': 0.09; 'sure,': 0.09; 'cc:addr:python- list': 0.11; '"file': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'roy': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'file,': 0.19; 'pieces': 0.19; 'cc:addr:python.org': 0.22; 'install': 0.23; "aren't": 0.24; 'skip': 0.24; 'mon,': 0.24; 'versions': 0.24; 'software.': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In- Reply-To:1': 0.27; 'unix': 0.29; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'file': 0.32; 'checked': 0.32; 'figure': 0.32; 'run': 0.32; 'running': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'disk': 0.36; 'earth': 0.36; 'executing': 0.36; 'picking': 0.36; 'pm,': 0.38; 'space': 0.40; 'how': 0.40; 'most': 0.60; 'gone': 0.61; 'new': 0.61; 'our': 0.64; 'different': 0.65; 'love': 0.65; 'latest': 0.67; 'periodically': 0.68; 'smith': 0.68; 'jul': 0.74; "it'd": 0.84; 'dozen': 0.91; 'to:none': 0.92 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:cc :content-type; bh=XerwZ2NEVxvoOERs87cGCWTbSXc6pI8JZ02w6varBYY=; b=Wcdsfv7X7F+0CFeAYWzKMpp45qUetIGFkfEd4f9bl//pbpzCNhVyss81MzgNjcNLQN 3ifS7G0O7GDGiuj0D/nn+3qRAgoZl4X67RQbP/nZBUJ/o7c7C3oam7Li6/q/HOmBsY64 rPRF/0YDcLkIET2oPHHoARGsGnmpKubbjt1QBQj+M1GoscFAFn1caD3HjL4eaw1+xNyq eorwsY4xi79tBMcWN9FKCCx1qV3Db8QhQuRxSih98kZypwAewL2vAXwfAYs/MBrdMeBC dmKYHPFhmSbmRkNGT3vHwkdo6eHobdxDfK3c79e5/48JlvuozLU6z5XD+pHVJeac05ji FTVQ== MIME-Version: 1.0 X-Received: by 10.52.157.164 with SMTP id wn4mr187531vdb.81.1404737894666; Mon, 07 Jul 2014 05:58:14 -0700 (PDT) In-Reply-To: References: <53ba11fc$0$29985$c3e8da3$5496439d@news.astraweb.com> <53ba538d$0$2926$c3e8da3$76491128@news.astraweb.com> Date: Mon, 7 Jul 2014 22:58:14 +1000 Subject: Re: open() and EOFError From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404737902 news.xs4all.nl 2837 [2001:888:2000:d::a6]:35514 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74103 On Mon, Jul 7, 2014 at 10:46 PM, Roy Smith wrote: > We've since modified our cleanup script to run lsof and skip purging any > releases which are still in use :-) LOL! I have a computer on which I periodically build and install new versions of a few pieces of software. Most of them don't keep running indefinitely, but I once checked lsof and found that I had about a dozen different versions of /usr/local/bin/pike, all executing happily from memory. If one of them happened to go looking for some file (eg an importable module), it'd end up picking up the latest version... hopefully that's never a problem (chances are the different versions aren't all *that* different - it'll just be that I pulled upstream's edits and rebuilt). I love how Unix will happily let you unlink a file and keep using it. Sure, it's a pitfall for people who are trying to figure out where on earth their disk space has gone ("I deleted that huge file, but my disk's still full!!"), but it's soooooo much easier to work with than "File in use, cannot delete". ChrisA