Skip to content

OrderedDict in Python 3.12+ #40

Description

@McSinyx

Since Python 3.7, dictionaries are ordered, rendering OrderedDict obsolete. Since Python 3.12, the representation of OrderedDict changes, making the following doctest fail.

>>> hjson.loads(text)
OrderedDict([('foo', 'a'), ('bar', 1)])

Got: OrderedDict({'foo': 'a', 'bar': 1})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    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