]> granicus.if.org Git - python/commitdiff
Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().
authorŁukasz Langa <lukasz@langa.pl>
Thu, 28 Apr 2011 15:27:59 +0000 (17:27 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Thu, 28 Apr 2011 15:27:59 +0000 (17:27 +0200)
Doc/library/configparser.rst

index 867f0912fdaa2b2a7612371aeaa52b0425211a5b..7f68de762ff95289a8e850de66689da97609b0b1 100644 (file)
@@ -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
    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
+   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 each section.
    *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`` and ``foo %(BAR)s`` are
-   equivalent.
+   :meth:`optionxform` method just like any other option name reference.  Using
+   the default implementation of :meth:`optionxform`, the values ``foo %(bar)s``
+   and ``foo %(BAR)s`` are equivalent.
 
 
 .. class:: SafeConfigParser([defaults[, dict_type]])