Skip to content

gh-162047: Add PyFrozenDict_New() to the limited C API - #162048

Open
vstinner wants to merge 4 commits into
python:mainfrom
vstinner:limited_frozendict
Open

vstinner wants to merge 4 commits into
python:mainfrom
vstinner:limited_frozendict

Conversation

@vstinner

@vstinner vstinner commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Add PEP 814 frozendict functions to the limited C API:

  • PyAnyDict_Check()
  • PyAnyDict_CheckExact()
  • PyFrozenDict_Check()
  • PyFrozenDict_CheckExact()
  • PyFrozenDict_New()

Move test wrappers from _testcapi to _testlimitedcapi.

Add PEP 814 frozendict functions to the limited C API:

* PyAnyDict_Check()
* PyAnyDict_CheckExact()
* PyFrozenDict_Check()
* PyFrozenDict_CheckExact()
* PyFrozenDict_New()

Move test wrappers from _testcapi to _testlimitedcapi.
@read-the-docs-community

read-the-docs-community Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35940054 | 📁 Comparing d48a993 against main (369d8bc)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

@vstinner
vstinner requested a review from a team as a code owner November 16, 2026 17:07
@vstinner

Copy link
Copy Markdown
Member Author

test_capi failed on Sanitizers / TSan (free-threading): it's an unrelated issue, see #162144.

@vstinner

Copy link
Copy Markdown
Member Author

@encukou: Would you mind to review this change?

@vstinner

Copy link
Copy Markdown
Member Author

test_capi failed on Sanitizers / TSan (free-threading): it's an unrelated issue, see #162144.

The TSan fix has been merged. I updated the branch to retrieve the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant