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})

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions