summaryrefslogtreecommitdiffstats
path: root/Doc/library/configparser.rst
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2012-12-31 02:38:39 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2012-12-31 02:38:39 (GMT)
commit3a8479a5838e0ad4c549d67acfdae2b9e9700e54 (patch)
tree9acf3eb02f12ce39a73539d41b3f3227e1f6f3d7 /Doc/library/configparser.rst
parent30574695067f948c2ee40d44c06d71e16c6b90f9 (diff)
downloadcpython-3a8479a5838e0ad4c549d67acfdae2b9e9700e54.zip
cpython-3a8479a5838e0ad4c549d67acfdae2b9e9700e54.tar.gz
cpython-3a8479a5838e0ad4c549d67acfdae2b9e9700e54.tar.bz2
Fixes `parser.clean()` reported in issue #16820.
Diffstat (limited to 'Doc/library/configparser.rst')
-rw-r--r--Doc/library/configparser.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 958375b..0b8212c 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -389,7 +389,13 @@ However, there are a few differences that should be taken into account:
the default value to be visible again. Trying to delete a default value
causes a ``KeyError``.
-* Trying to delete the ``DEFAULTSECT`` raises ``ValueError``.
+* ``DEFAULTSECT`` cannot be removed from the parser:
+
+ * trying to delete it raises ``ValueError``,
+
+ * ``parser.clear()`` leaves it intact,
+
+ * ``parser.popitem()`` never returns it.
* ``parser.get(section, option, **kwargs)`` - the second argument is **not**
a fallback value. Note however that the section-level ``get()`` methods are