Skip to content

json dump fails for mixed-type keys when sort_keys is specified #69643

Open
@tanzerswingcoat

Description

@tanzerswingcoat
BPO 25457
Nosy @zpincus, @bitdancer, @MojoVampire, @jheiv, @aaronchall, @naught101, @akulakov
PRs
  • bpo-25457: Allow json.encode() to handle mixed keys when sort_keys=True #8011
  • bpo-25457: Remove sorting bug in json._iterencode_dict #15691
  • 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 = None
    created_at = <Date 2015-10-22.08:01:01.647>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'json dump fails for mixed-type keys when sort_keys is specified'
    updated_at = <Date 2021-07-10.17:34:02.379>
    user = 'https://bugs.python.org/tanzerswingcoat'

    bugs.python.org fields:

    activity = <Date 2021-07-10.17:34:02.379>
    actor = '[email protected]'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2015-10-22.08:01:01.647>
    creator = '[email protected]'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 25457
    keywords = ['patch']
    message_count = 17.0
    messages = ['253324', '253360', '253362', '253363', '253368', '253369', '297246', '317187', '317216', '317240', '317241', '317243', '317246', '320706', '384635', '397249', '397250']
    nosy_count = 8.0
    nosy_names = ['zachrahan', 'r.david.murray', 'josh.r', 'jedwards', '[email protected]', 'Aaron Hall', 'naught101', 'andrei.avk']
    pr_nums = ['8011', '15691']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue25457'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      No status

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions