Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-37779 : Add information about the overriding behavior of ConfigParser.read #15177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 23, 2020
Prev Previous commit
Next Next commit
Update Doc/library/configparser.rst
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
  • Loading branch information
sblondon and aeros authored Aug 9, 2019
commit b3ea8555964d312fdcde241d97a3b47cc434b76d
4 changes: 3 additions & 1 deletion 4 Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ sections [1]_. Note also that keys in sections are
case-insensitive and stored in lowercase [1]_.

sblondon marked this conversation as resolved.
Show resolved Hide resolved

If we need to read several configurations, each one having more priority than the previous one, we can use the same :class:`ConfigParser` instance to override previous defined data and keep not redefined data.
If it is necessary to read several configurations, with each one having more
priority than the previous one, an instance of :class:`ConfigParser` can be
used to override previously defined properties and retain existing ones.

.. doctest::

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.