Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40606
| References | <61520ad1-9e3c-4eec-b1d9-8a9d8fc7bf0c@googlegroups.com> <5136b87c$0$30001$c3e8da3$5496439d@news.astraweb.com> <78a2e6bc-e37a-4016-9aba-73561f204986@googlegroups.com> <mailman.2923.1362543601.2939.python-list@python.org> <5136cc21$0$30001$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2013-03-06 17:09 +1100 |
| Subject | Re: Config & ConfigParser |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2925.1362550159.2939.python-list@python.org> (permalink) |
On Wed, Mar 6, 2013 at 3:54 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Wed, 06 Mar 2013 15:19:53 +1100, Chris Angelico wrote: > >> On Wed, Mar 6, 2013 at 3:07 PM, Chuck <galois271@gmail.com> wrote: >>> I guess my question was more what is a config.file & why/how do I use >>> one. Thanks >> >> In its simplest form, a config file is one way to change a program's >> behaviour without editing the code. > > I don't think that's quite right, because your code has to be changed to > read the data from the configuration file in the first place. It doesn't > just happen by magic. Sure, but once you've made your code read from the config file, you can then edit the file only and it changes the program's actions. Of course, that's an *incredibly* broad description; amongst its coverage are such diverse elements as Apache reading an HTML file to serve, CPython reading a .py file, and the ROM BIOS reading a boot sector and jumping to it... but based on the OP's question I couldn't really be any more specific. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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