Skip to content

configparser.ConfigParser.read() has undocumented/unexpected behaviour when given a bytestring path. #73813

@DavidCEllis

Description

@DavidCEllis
BPO 29627
Nosy @ambv, @DavidCEllis
PRs
  • bpo-31307: Allow use of bytes object as a single argument in ConfigParser.read #3420
  • Superseder
  • bpo-31307: ConfigParser.read silently fails if filenames argument is a byte string
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-09-05.17:52:56.707>
    created_at = <Date 2017-02-23.00:08:04.932>
    labels = ['3.7', 'type-bug', 'library']
    title = 'configparser.ConfigParser.read() has undocumented/unexpected behaviour when given a bytestring path.'
    updated_at = <Date 2017-09-07.12:06:28.067>
    user = 'https://github.com/DavidCEllis'

    bugs.python.org fields:

    activity = <Date 2017-09-07.12:06:28.067>
    actor = 'vxgmichel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-05.17:52:56.707>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2017-02-23.00:08:04.932>
    creator = 'David Ellis'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29627
    keywords = []
    message_count = 1.0
    messages = ['288394']
    nosy_count = 2.0
    nosy_names = ['lukasz.langa', 'David Ellis']
    pr_nums = ['3420']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '31307'
    type = 'behavior'
    url = 'https://bugs.python.org/issue29627'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions