Skip to content

Pretty printing sorting for set and frozenset instances #71682

@danilobellini

Description

@danilobellini
BPO 27495
Nosy @freddrake, @rhettinger, @stevendaprano, @serhiy-storchaka, @danilobellini, @bbonenfant
PRs
  • gh-71682: Make pprint.pformat always order sets #22977
  • Files
  • pprint_small_set_sorted.patch: Sorts small set/frozenset on pprint and adds test_sorted_set_frozenset
  • saferepr_collections.patch
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = None
    created_at = <Date 2016-07-12.11:30:29.623>
    labels = ['type-bug', '3.8', '3.9', '3.10', '3.7', 'library']
    title = 'Pretty printing sorting for set and frozenset instances'
    updated_at = <Date 2020-10-25.20:05:08.751>
    user = 'https://github.com/danilobellini'

    bugs.python.org fields:

    activity = <Date 2020-10-25.20:05:08.751>
    actor = 'bbonenfant'
    assignee = 'serhiy.storchaka'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-07-12.11:30:29.623>
    creator = 'danilo.bellini'
    dependencies = []
    files = ['43698', '43864']
    hgrepos = []
    issue_num = 27495
    keywords = ['patch']
    message_count = 8.0
    messages = ['270237', '270246', '270325', '270326', '270332', '271155', '279412', '369795']
    nosy_count = 7.0
    nosy_names = ['fdrake', 'rhettinger', 'steven.daprano', 'SilentGhost', 'serhiy.storchaka', 'danilo.bellini', 'bbonenfant']
    pr_nums = ['22977']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27495'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions