Skip to content

pprint._safe_key is not always safe enough #59203

@ShawnBrown

Description

@ShawnBrown
mannequin
BPO 14998
Nosy @rhettinger, @ezio-melotti, @florentx
Files
  • pprint_safe_key.patch: Patch adds a try/catch to pprint._safe_key to handle certain unsortable types when used as dict keys (also adds relevant test case assertions).
  • 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 2012-07-21.11:05:24.281>
    created_at = <Date 2012-06-04.03:32:15.187>
    labels = ['type-bug', 'library']
    title = 'pprint._safe_key is not always safe enough'
    updated_at = <Date 2012-07-21.11:05:24.279>
    user = 'https://bugs.python.org/ShawnBrown'

    bugs.python.org fields:

    activity = <Date 2012-07-21.11:05:24.279>
    actor = 'flox'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-07-21.11:05:24.281>
    closer = 'flox'
    components = ['Library (Lib)']
    creation = <Date 2012-06-04.03:32:15.187>
    creator = 'Shawn.Brown'
    dependencies = []
    files = ['25864']
    hgrepos = []
    issue_num = 14998
    keywords = ['patch']
    message_count = 7.0
    messages = ['162249', '162250', '162519', '165998', '166001', '166004', '166011']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'ezio.melotti', 'flox', 'python-dev', 'Shawn.Brown']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14998'
    versions = ['Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard 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