Skip to content

[mypyc] Fix non-deterministic compiler output due to frozensets#21631

Merged
JukkaL merged 2 commits into
masterfrom
mypyc-deterministic
Jun 22, 2026
Merged

[mypyc] Fix non-deterministic compiler output due to frozensets#21631
JukkaL merged 2 commits into
masterfrom
mypyc-deterministic

Conversation

@JukkaL

@JukkaL JukkaL commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Frozenset literals were emitted in an unpredictable order due to hash randomization. Make the order deterministic.

I used some coding agent assist (esp. with tests).

Frozenset literals were emitted in an unpredictable order due to
hash randomization. Make the order deterministic.
Comment thread mypyc/codegen/literals.py Outdated
Co-authored-by: Piotr Sawicki <sawickipiotr@outlook.com>
@JukkaL JukkaL merged commit 9d5e32c into master Jun 22, 2026
18 checks passed
@JukkaL JukkaL deleted the mypyc-deterministic branch June 22, 2026 12:39
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.

2 participants