Skip to content

Use dict instead of OrderedDict - #779

Merged
tommyod merged 1 commit into
equinor:mainfrom
tommyod:ordereddict
Oct 9, 2025
Merged

Use dict instead of OrderedDict#779
tommyod merged 1 commit into
equinor:mainfrom
tommyod:ordereddict

Conversation

@tommyod

@tommyod tommyod commented Oct 9, 2025

Copy link
Copy Markdown
Contributor
  • Not sure if we ever rely on ordering
  • Either way, dict preserves order since python 3.7 (which had EOL a long time ago :) )

@tommyod
tommyod requested a review from lucaeg October 9, 2025 04:50

@lucaeg lucaeg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and sounds reasonable!

@berland

berland commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

The ordering was intentional (back in Python 2.7 days) but probably only as an aid for human parsing of the resulting files. Could not find any tests assuring order is kept though.

@tommyod
tommyod merged commit c50625a into equinor:main Oct 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants