Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix determinism in state_abbr() #1829

Merged
merged 1 commit into from Mar 23, 2023

Conversation

DavidCain
Copy link
Contributor

Unfortunately, by changing the code to use sets (unordered by definition) from simple tuples, I broke the determinism of state_abbr(). Apologies! Changing it back to use a simple ordered collection fixes the problem.

(This probably makes sense to ship as 18.3.1, since there's no change in the API)

@DavidCain DavidCain force-pushed the dcain-fix-state-abbr-determinism branch from a1a77dd to 7f56120 Compare March 23, 2023 19:23
Unfortunately, by changing the code to use sets (unordered by
definition) from simple tuples, I broke the determinism of
`state_abbr()`. Apologies! Changing it back to use a simple ordered
collection fixes the problem.

(This probably makes sense to ship as 18.3.1, since there's no change in
the API)
@DavidCain DavidCain force-pushed the dcain-fix-state-abbr-determinism branch from 7f56120 to 9a7a6f6 Compare March 23, 2023 19:47
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

Thank you!

@fcurella fcurella merged commit 7cd3ac5 into joke2k:master Mar 23, 2023
28 checks passed
@DavidCain DavidCain deleted the dcain-fix-state-abbr-determinism branch March 23, 2023 19:58
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.

None yet

2 participants