Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 891236f

Browse files
slatenyhugovk
andauthored
gh-71770: Add more details on behavior of configparser's default_section (#31562)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 0858328 commit 891236f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/configparser.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,10 @@ ConfigParser Objects
935935

936936
When *default_section* is given, it specifies the name for the special
937937
section holding default values for other sections and interpolation purposes
938-
(normally named ``"DEFAULT"``). This value can be retrieved and changed on
939-
runtime using the ``default_section`` instance attribute.
938+
(normally named ``"DEFAULT"``). This value can be retrieved and changed at
939+
runtime using the ``default_section`` instance attribute. This won't
940+
re-evaluate an already parsed config file, but will be used when writing
941+
parsed settings to a new config file.
940942

941943
Interpolation behaviour may be customized by providing a custom handler
942944
through the *interpolation* argument. ``None`` can be used to turn off

0 commit comments

Comments
 (0)