Skip to content

Can't use sort_keys in json.dumps with mismatched types #82227

Description

@yoann934
mannequin
BPO 38046
Nosy @nicktimko, @MojoVampire
PRs
  • bpo-25457: Remove sorting bug in json._iterencode_dict #15691
  • Superseder
  • bpo-25457: json dump fails for mixed-type keys when sort_keys is specified
  • Files
  • json_bug_exemple.py
  • 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 2019-09-06.20:13:55.539>
    created_at = <Date 2019-09-06.18:56:05.445>
    labels = ['type-bug', 'library', '3.9']
    title = "Can't use sort_keys in json.dumps with mismatched types"
    updated_at = <Date 2019-09-07.09:56:29.366>
    user = 'https://bugs.python.org/yoann934'

    bugs.python.org fields:

    activity = <Date 2019-09-07.09:56:29.366>
    actor = 'python-dev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-06.20:13:55.539>
    closer = 'josh.r'
    components = ['Library (Lib)']
    creation = <Date 2019-09-06.18:56:05.445>
    creator = 'yoann934'
    dependencies = []
    files = ['48596']
    hgrepos = []
    issue_num = 38046
    keywords = []
    message_count = 3.0
    messages = ['351268', '351269', '351270']
    nosy_count = 3.0
    nosy_names = ['nicktimko', 'josh.r', 'yoann934']
    pr_nums = ['15691']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '25457'
    type = 'behavior'
    url = 'https://bugs.python.org/issue38046'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Fields

      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