Skip to content

Note that configparser.ConfigParser.items returns a collections.abc.ItemsView in the first overload #149050

@jonathandung

Description

@jonathandung

Documentation

When the items method of an instance of configparser.ConfigParser is called without a section argument, the implementation delegates to the items method of the superclass directly to return a typical view of dictionary items; that is, a special set-like iterator over tuples of the form (section_name, section_proxy). This is as opposed to the documented behaviour, which states a list is returned for both overloads (regardless if section is passed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions