Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40586

Re: Config & ConfigParser

Date 2013-03-05 18:15 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: Config & ConfigParser
References <61520ad1-9e3c-4eec-b1d9-8a9d8fc7bf0c@googlegroups.com> <mailman.2911.1362518132.2939.python-list@python.org> <8a24db13-b599-4a9f-a98f-5e0d256aeee5@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2918.1362528820.2939.python-list@python.org> (permalink)

Show all headers | View raw


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


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Config & ConfigParser Chuck <galois271@gmail.com> - 2013-03-05 12:09 -0800
  Re: Config & ConfigParser Tim Chase <python.list@tim.thechases.com> - 2013-03-05 15:17 -0600
    Re: Config & ConfigParser Chuck <galois271@gmail.com> - 2013-03-05 15:58 -0800
      Re: Config & ConfigParser Tim Chase <python.list@tim.thechases.com> - 2013-03-05 18:15 -0600
        Re: Config & ConfigParser Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-06 04:04 +0000
  Re: Config & ConfigParser Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-06 03:31 +0000
    Re: Config & ConfigParser Chris Angelico <rosuav@gmail.com> - 2013-03-06 15:05 +1100
      Re: Config & ConfigParser Neil Cerutti <neilc@norwich.edu> - 2013-03-07 16:18 +0000
    Re: Config & ConfigParser Chuck <galois271@gmail.com> - 2013-03-05 20:07 -0800
      Re: Config & ConfigParser Chris Angelico <rosuav@gmail.com> - 2013-03-06 15:19 +1100
        Re: Config & ConfigParser Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-06 04:54 +0000
          Re: Config & ConfigParser Chris Angelico <rosuav@gmail.com> - 2013-03-06 17:09 +1100

csiph-web