summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2011-04-28 15:27:59 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2011-04-28 15:27:59 (GMT)
commit22108f1bb016458c010623c8abfe94444fae9de8 (patch)
tree0e9b46f7a5fa1c9820abe45b3bf39d91bafd2bef
parent31e1b1f69c784fc436b475d2e7992266502ab271 (diff)
downloadcpython-22108f1bb016458c010623c8abfe94444fae9de8.zip
cpython-22108f1bb016458c010623c8abfe94444fae9de8.tar.gz
cpython-22108f1bb016458c010623c8abfe94444fae9de8.tar.bz2
Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().
-rw-r--r--Doc/library/configparser.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 867f091..7f68de7 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -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]])