Skip to content

str.format and string.Formatter subscript behaviors diverge #84166

Description

@tekknolagi
BPO 39985
Nosy @ericvsmith, @tekknolagi
PRs
  • bpo-39985: Make string.Formatter with empty field name default to 0 #19065
  • Superseder
  • bpo-27307: string.Formatter does not support key/attribute access on unnumbered fields
  • 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 2020-03-19.15:22:33.694>
    created_at = <Date 2020-03-17.01:42:20.125>
    labels = ['3.7', 'type-bug', 'library']
    title = 'str.format and string.Formatter subscript behaviors diverge'
    updated_at = <Date 2020-03-19.15:22:33.693>
    user = 'https://github.com/tekknolagi'

    bugs.python.org fields:

    activity = <Date 2020-03-19.15:22:33.693>
    actor = 'eric.smith'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-19.15:22:33.694>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2020-03-17.01:42:20.125>
    creator = 'tekknolagi'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39985
    keywords = ['patch']
    message_count = 3.0
    messages = ['364382', '364603', '364606']
    nosy_count = 2.0
    nosy_names = ['eric.smith', 'tekknolagi']
    pr_nums = ['19065']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '27307'
    type = 'behavior'
    url = 'https://bugs.python.org/issue39985'
    versions = ['Python 2.7', '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
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions