]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-71770: Add more details on behavior of configparser's default_section ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2023 14:03:20 +0000 (07:03 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 14:03:20 +0000 (14:03 +0000)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/configparser.rst

index 846eb57f5994129d53fa939fc81d37d7e8cc78ff..819c3799b08da70a11db7c52b57c94ddb0858934 100644 (file)
@@ -935,8 +935,10 @@ ConfigParser Objects
 
    When *default_section* is given, it specifies the name for the special
    section holding default values for other sections and interpolation purposes
-   (normally named ``"DEFAULT"``).  This value can be retrieved and changed on
-   runtime using the ``default_section`` instance attribute.
+   (normally named ``"DEFAULT"``).  This value can be retrieved and changed at
+   runtime using the ``default_section`` instance attribute. This won't
+   re-evaluate an already parsed config file, but will be used when writing
+   parsed settings to a new config file.
 
    Interpolation behaviour may be customized by providing a custom handler
    through the *interpolation* argument. ``None`` can be used to turn off