Skip to content

Dict order of items is incorrect #4760

@makermelissa

Description

@makermelissa

Tested using CircuitPython 6.2.0 on the FunHouse.

test = {"a": "A", "b": "B", "c": "C"}
>>> test
{'c': 'C', 'a': 'A', 'b': 'B'}

Here it is in CPython:

>>> test = {"a": "A", "b": "B", "c": "C"}
>>> test
{'a': 'A', 'b': 'B', 'c': 'C'}

The CPython result is what I would expect for both.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions