cpython: c7ce67c9237a (original) (raw)
Mercurial > cpython
changeset 69670:c7ce67c9237a 2.6
Closes #11786: ConfigParser.[Raw]ConfigParser optionxform(). [#11786]
Ćukasz Langa lukasz@langa.pl | |
---|---|
date | Thu, 28 Apr 2011 17:27:59 +0200 |
parents | 4bd47815e6c5 |
children | a6b772599594 4e5f161f667c |
files | Doc/library/configparser.rst |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-)[+] [-] Doc/library/configparser.rst 12 |
line wrap: on
line diff
--- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -79,9 +79,12 @@ write-back, as will be the keys within e The basic configuration object. When defaults is given, it is initialized into the dictionary of intrinsic defaults. When dict_type is given, it will be used to create the dictionary objects for the list of sections, for the
- options within a section, and for the default values. This class does not support the magical interpolation behavior.
- All option names are passed through the :meth:
optionxform
method. Its - default implementation converts option names to lower case. + .. versionadded:: 2.3 .. versionchanged:: 2.6 @@ -98,10 +101,9 @@ write-back, as will be the keys within e defaults. All option names used in interpolation will be passed through the
- :meth:
optionxform
method just like any other option name reference. For - example, using the default implementation of :meth:
optionxform
(which converts - option names to lower case), the values
foo %(bar)s
andfoo %(BAR)s
are - equivalent.