Skip to content

Should None be an acceptable default_section parameter of configparser.ConfigParser #12700

Open
@Avasam

Description

@Avasam

Since this is typing related, I'll ask here before adding to cpython's 5k+ issues.

In pypa/setuptools#4604 (comment) (read this comment for more details) , I found a usage of configparser.ConfigParser(default_section=None, delimiters=("=",)) seemingly to not have a default section.

The documentation doesn't make any mention of leveraging that behaviour. So we're left wondering if the parameter type should be updated (along as a request for cpython's doc to make it explicit), use "" instead, or just type-ignoring it, marking as using undocumented behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions