mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-71770: Add more details on behavior of configparser's default_section (GH-31562) (#109088)
gh-71770: Add more details on behavior of configparser's default_section (GH-31562)
(cherry picked from commit 891236f482
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
02e51f86d8
commit
82f5291a1d
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue