This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author draghuram
Recipients anadelonbrin, draghuram, ggenellina, loewis
Date 2008-02-01.17:53:11
SpamBayes Score 0.04517573
Marked as misclassified No
Message-id <1201888415.2.0.031226527096.issue1090076@psf.upfronthosting.co.za>
In-reply-to
Content
The following two statements from ConfigParser document clearly mention
that what is passed in 'vars' are defaults and defaults come into
picture only when values are not explicitly set.

"Default values can be specified by passing them into the ConfigParser
constructor as a dictionary. Additional defaults may be passed into the
get() method which will override all others."

"ConfigParser.get(section, option[, raw[, vars]])¶
    Get an option value for the named section. All the '%'
interpolations are expanded in the return values, based on the defaults
passed into the constructor, as well as the options vars provided,
unless the raw argument is true."

If we can not change the behaviour (as it will break existing code), we
should explicitly document this fact. Basically, get() looks for options
in the following order:

1) in 'vars'.
2) in the actual section
3) in default section
History
Date User Action Args
2008-02-01 17:53:35draghuramsetspambayes_score: 0.0451757 -> 0.04517573
recipients: + draghuram, loewis, anadelonbrin, ggenellina
2008-02-01 17:53:35draghuramsetspambayes_score: 0.0451757 -> 0.0451757
messageid: <1201888415.2.0.031226527096.issue1090076@psf.upfronthosting.co.za>
2008-02-01 17:53:12draghuramlinkissue1090076 messages
2008-02-01 17:53:11draghuramcreate