Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'before.': 0.09; 'path,': 0.09; 'cc:addr:python-list': 0.10; '-tkc': 0.16; 'atomically': 0.16; 'caching': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'wrote:': 0.17; 'directory.': 0.17; 'cc:2**0': 0.23; "haven't": 0.23; 'thus': 0.24; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'connection': 0.30; 'stuff': 0.30; 'gets': 0.32; 'file': 0.32; 'goes': 0.33; 'thanks': 0.34; 'server': 0.35; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'instead': 0.39; 'where': 0.40; 'your': 0.60; "you've": 0.61; 'ever': 0.63; 'subject: & ': 0.67; 'benefit': 0.70; 'etc,': 0.84; 'off,': 0.84; 'received:50.22': 0.84; 'download.': 0.91 Date: Tue, 5 Mar 2013 18:15:20 -0600 From: Tim Chase To: Chuck Subject: Re: Config & ConfigParser In-Reply-To: <8a24db13-b599-4a9f-a98f-5e0d256aeee5@googlegroups.com> References: <61520ad1-9e3c-4eec-b1d9-8a9d8fc7bf0c@googlegroups.com> <8a24db13-b599-4a9f-a98f-5e0d256aeee5@googlegroups.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com Cc: python-list@python.org 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362528820 news.xs4all.nl 6959 [2001:888:2000:d::a6]:34500 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40586 On 2013-03-05 15:58, Chuck wrote: > Thanks Tim! So much stuff I haven't thought of before. Out of > curiosity, what's the benefit of caching the download, instead of > downloading to the final destination? If your connection gets interrupted, the server goes down, etc, you have a partial download. If you've put it directly in the download path, your other programs see this partial download. However if your program can resume the download where it left off, once it's completed successfully, it can atomically move the file to your download location. Thus your other programs only ever see all-or-nothing in the download directory. -tkc