Skip to content

gh-150045: Add frozendict support to the compiler and AST constants#150050

Open
lgeiger wants to merge 5 commits into
python:mainfrom
lgeiger:ast-frozendict
Open

gh-150045: Add frozendict support to the compiler and AST constants#150050
lgeiger wants to merge 5 commits into
python:mainfrom
lgeiger:ast-frozendict

Conversation

@lgeiger
Copy link
Copy Markdown
Contributor

@lgeiger lgeiger commented May 19, 2026

This adapts the compiler to treat frozendict as a valid constant similar to frozenset:

  • 37d8189 adds frozendict to ast constants
  • b027839 adds support for deduplication via _PyCode_ConstantKey
  • 992b4b6 adds recursive constant merging which make
  • aeed04a fixes the freethreading case

Let me know if you'd like me to split this up into separate PRs, this has become a much larger than I had originally intended.

@lgeiger lgeiger requested a review from methane as a code owner May 19, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant