Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Lib/configparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,13 +885,17 @@ def getboolean(self, section, option, *, raw=False, vars=None,
raw=raw, vars=vars, fallback=fallback, **kwargs)

def items(self, section=_UNSET, raw=False, vars=None):
"""Return a list of (name, value) tuples for each option in a section.
"""Return the items of the parser or of a section.

All % interpolations are expanded in the return values, based on the
defaults passed into the constructor, unless the optional argument
`raw` is true. Additional substitutions may be provided using the
`vars` argument, which must be a dictionary whose contents overrides
any pre-existing defaults.
When `section` is not given, return an ItemsView of
(section_name, section_proxy) pairs, including DEFAULTSECT.

Otherwise, return a list of (name, value) tuples for each option in
the given section. All % interpolations are expanded in the return
values, based on the defaults passed into the constructor, unless the
optional argument `raw` is true. Additional substitutions may be
provided using the `vars` argument, which must be a dictionary whose
contents overrides any pre-existing defaults.

The section DEFAULT is special.
"""
Expand Down
Loading