summaryrefslogtreecommitdiffstats
path: root/Doc/library/configparser.rst
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2010-11-21 13:41:35 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2010-11-21 13:41:35 (GMT)
commit5c86339bd09959366fcb0d4c31798a4aac128083 (patch)
treec007a2fda829843c4531441dc088b5c461cfa635 /Doc/library/configparser.rst
parentb2b2382dc4a13cd5bd18767af9bfc6dbdece0113 (diff)
downloadcpython-5c86339bd09959366fcb0d4c31798a4aac128083.zip
cpython-5c86339bd09959366fcb0d4c31798a4aac128083.tar.gz
cpython-5c86339bd09959366fcb0d4c31798a4aac128083.tar.bz2
Issue #10489: removed broken `__name__` support from configparser
Diffstat (limited to 'Doc/library/configparser.rst')
-rw-r--r--Doc/library/configparser.rst7
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 8977e8f..070328d 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -333,10 +333,6 @@ However, there are a few differences that should be taken into account:
The mapping protocol is implemented on top of the existing legacy API so that
subclassing the original interface makes the mappings work as expected as well.
-One difference is the explicit lack of support for the ``'__name__'`` special
-key. This is because the existing behavior of ``'__name__'`` is very
-inconsistent and supporting it would only lead to problems. Details `here
-<http://mail.python.org/pipermail/python-dev/2010-July/102556.html>`_.
Customizing Parser Behaviour
@@ -947,8 +943,7 @@ The :class:`ConfigParser` class extends some methods of the
need interpolation.
The values in *defaults* must be appropriate for the ``%()s`` string
- interpolation. Note that ``'__name__'`` is an intrinsic default; its value
- is the section name, and will override any value provided in *defaults*.
+ interpolation.
All option names used in interpolation will be passed through the
:meth:`optionxform` method just like any other option name reference. For