Skip to content

pprint.pprint raises TypeError on dictionaries with user-defined types as keys #54226

@arno

Description

@arno
mannequin
BPO 10017
Nosy @rhettinger, @amauryfa, @giampaolo, @florentx, @swarmer
Superseder
  • bpo-14998: pprint._safe_key is not always safe enough
  • Files
  • pprint_fix.patch: Fix sorting of class objects and add tests for the issue
  • 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.09:27:04.836>
    created_at = <Date 2010-10-02.20:35:18.179>
    labels = ['easy', 'type-bug', 'library']
    title = 'pprint.pprint raises TypeError on dictionaries with user-defined types as keys'
    updated_at = <Date 2012-07-21.09:27:04.835>
    user = 'https://bugs.python.org/arno'

    bugs.python.org fields:

    activity = <Date 2012-07-21.09:27:04.835>
    actor = 'flox'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-07-21.09:27:04.836>
    closer = 'flox'
    components = ['Library (Lib)']
    creation = <Date 2010-10-02.20:35:18.179>
    creator = 'arno'
    dependencies = []
    files = ['26433']
    hgrepos = []
    issue_num = 10017
    keywords = ['patch', 'easy']
    message_count = 8.0
    messages = ['117895', '118209', '118214', '118227', '165790', '165817', '165999', '166000']
    nosy_count = 8.0
    nosy_names = ['rhettinger', 'amaury.forgeotdarc', 'giampaolo.rodola', 'rbp', 'arno', 'flox', 'python-dev', 'anton.barkovsky']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = '14998'
    type = 'behavior'
    url = 'https://bugs.python.org/issue10017'
    versions = ['Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easystdlibStandard 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