Skip to content

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

Description

@tanzerswingcoat
BPO 25457
Nosy @zpincus, @bitdancer, @MojoVampire, @jheiv, @aaronchall, @naught101, @akulakov
PRs
  • gh-69643: 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 = 'tanzer@swing.co.at'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2015-10-22.08:01:01.647>
    creator = 'tanzer@swing.co.at'
    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', 'tanzer@swing.co.at', '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']

    Linked PRs

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions