Kaydet (Commit) 22108f1b authored tarafından Łukasz Langa's avatar Łukasz Langa

Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().

üst 31e1b1f6
...@@ -79,9 +79,12 @@ write-back, as will be the keys within each section. ...@@ -79,9 +79,12 @@ write-back, as will be the keys within each section.
The basic configuration object. When *defaults* is given, it is initialized The basic configuration object. When *defaults* is given, it is initialized
into the dictionary of intrinsic defaults. When *dict_type* is given, it will 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 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 options within a section, and for the default values. This class does not
support the magical interpolation behavior. 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 .. versionadded:: 2.3
.. versionchanged:: 2.6 .. versionchanged:: 2.6
...@@ -98,10 +101,9 @@ write-back, as will be the keys within each section. ...@@ -98,10 +101,9 @@ write-back, as will be the keys within each section.
*defaults*. *defaults*.
All option names used in interpolation will be passed through the All option names used in interpolation will be passed through the
:meth:`optionxform` method just like any other option name reference. For :meth:`optionxform` method just like any other option name reference. Using
example, using the default implementation of :meth:`optionxform` (which converts the default implementation of :meth:`optionxform`, the values ``foo %(bar)s``
option names to lower case), the values ``foo %(bar)s`` and ``foo %(BAR)s`` are and ``foo %(BAR)s`` are equivalent.
equivalent.
.. class:: SafeConfigParser([defaults[, dict_type]]) .. class:: SafeConfigParser([defaults[, dict_type]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment