Skip to content

pprint._safe_repr() unsafe on ordering differently types objects with same str represenation #46346

@simonpercivall

Description

@simonpercivall
BPO 2074
Nosy @simonpercivall
Files
  • pprint.diff: pprint with fix diff from r60741
  • test_pprint30_bug.py: test case to demonstrate pprint problem
  • 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 2008-03-18.19:28:09.486>
    created_at = <Date 2008-02-12.02:47:18.861>
    labels = ['type-bug', 'library']
    title = 'pprint._safe_repr() unsafe on ordering differently types objects with same str represenation'
    updated_at = <Date 2008-03-18.23:00:11.225>
    user = 'https://github.com/simonpercivall'

    bugs.python.org fields:

    activity = <Date 2008-03-18.23:00:11.225>
    actor = 'simon.percivall'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-03-18.19:28:09.486>
    closer = 'jafo'
    components = ['Library (Lib)']
    creation = <Date 2008-02-12.02:47:18.861>
    creator = 'simon.percivall'
    dependencies = []
    files = ['9413', '9746']
    hgrepos = []
    issue_num = 2074
    keywords = ['patch']
    message_count = 3.0
    messages = ['62303', '63972', '64011']
    nosy_count = 2.0
    nosy_names = ['jafo', 'simon.percivall']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2074'
    versions = ['Python 3.0']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions