| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e5b4ea1f-809c-490d-0e95-ea18b1a24645 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D340:38EE04:1AB8CE3:233F315:6B021980 |
| html-safe-nonce | a287e17f73bcc9b02f039b3d6ed20b2f1a0ef925ed8d70f725ea5d71f888ed01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzQwOjM4RUUwNDoxQUI4Q0UzOjIzM0YzMTU6NkIwMjE5ODAiLCJ2aXNpdG9yX2lkIjoiNDc1MzU5NjM4NjgzNzE0MTg4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b267381ff454f23db40f6c96a9b413b1f8ad1e8d92eb194f849d23ffde9d9d56 |
| hovercard-subject-tag | pull_request:4021393107 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/153413/files |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | Issue: gh-153410 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/153413/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153413%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153413%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/153413/files |
| Reload | https://github.com/python/cpython/pull/153413/files |
| Reload | https://github.com/python/cpython/pull/153413/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| encukou | https://github.com/encukou |
| python:main | https://github.com/python/cpython/tree/main |
| sobolevn:issue-153410 | https://github.com/sobolevn/cpython/tree/issue-153410 |
|
Conversation
33
| https://github.com/python/cpython/pull/153413 |
|
Commits
13
| https://github.com/python/cpython/pull/153413/commits |
|
Checks
54
| https://github.com/python/cpython/pull/153413/checks |
|
Files changed
8
| https://github.com/python/cpython/pull/153413/files |
|
gh-153410: Add PyDict_AsFrozenDictAndClear C-API
| https://github.com/python/cpython/pull/153413/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/153413/files |
|
22df94b
gh-153410: Add `PyDict_AsFrozenDictAndClear` C-API
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/22df94bbdb19b0e76dae67438c8477058abf2d81 |
|
b629c3f
Fix docs
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/b629c3fb2c637496d4cfc756aabbed34f33d546d |
|
9eafd4a
Fix the comment
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/9eafd4af0f9f1ff8da7b42babf0ec86e8355873f |
|
acd868a
Update Lib/test/test_capi/test_dict.py
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/acd868af49e9fdb40fe1478ae793309f8aa4d79d |
|
4bbaea2
Address review
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/4bbaea2f644ffd6f6c1472845da2ad3d6453115a |
|
e80b8b3
Address Victors review
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/e80b8b3d42a242072741c3f7e48249169f88ba3f |
|
d0d772b
Fix the cast
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/d0d772b69e6e218dab02afe7d223414d77cc65de |
|
f9df030
Support `dict` subtypes
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/f9df030b358e007f105b15bd63c43da23e329b84 |
|
3133dd1
Adjust docs
sobolevn Jul 9, 2026
| https://github.com/python/cpython/pull/153413/commits/3133dd11b9d4ed6813c1cf6b473f764ea74e3ecb |
|
09557a7
Merge
sobolevn Nov 1, 2026
| https://github.com/python/cpython/pull/153413/commits/09557a7c0872f35554f4842e22e44dfdcabdc4f9 |
|
238fa69
Apply suggestions from code review
sobolevn Nov 1, 2026
| https://github.com/python/cpython/pull/153413/commits/238fa69baad35d991c2da9fad8b555451b2a32c0 |
|
5cf437a
Address code review
sobolevn Nov 1, 2026
| https://github.com/python/cpython/pull/153413/commits/5cf437af6221715e3329740835872b07ade29058 |
|
0381bad
Apply suggestions from code review
sobolevn Nov 2, 2026
| https://github.com/python/cpython/pull/153413/commits/0381bad5cb8cef9906ed8e22f219c8f1875a11de |
|
Clear filters
| https://github.com/python/cpython/pull/153413/files |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
|
dict.rst
| https://github.com/python/cpython/pull/153413/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
3.16.rst
| https://github.com/python/cpython/pull/153413/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
dictobject.h
| https://github.com/python/cpython/pull/153413/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
|
test_dict.py
| https://github.com/python/cpython/pull/153413/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
|
2026-07-09-13-52-17.gh-issue-153410.neaDgY.rst
| https://github.com/python/cpython/pull/153413/files#diff-4439fe2139a8cbbb9c1926d3713b40baaf972501e51432d3b8974a51cbd98784 |
|
dict.c
| https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
dictobject.c
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
marshal.c
| https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114 |
| Doc/c-api/dict.rst | https://github.com/python/cpython/pull/153413/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Doc/c-api/dict.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
|
| https://github.com/python/cpython/pull/153413/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.16.rst | https://github.com/python/cpython/pull/153413/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Doc/whatsnew/3.16.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
| https://github.com/python/cpython/pull/153413/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
| Include/cpython/dictobject.h | https://github.com/python/cpython/pull/153413/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Include/cpython/dictobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
| Lib/test/test_capi/test_dict.py | https://github.com/python/cpython/pull/153413/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Lib/test/test_capi/test_dict.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
|
| https://github.com/python/cpython/pull/153413/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
| Misc/NEWS.d/next/C_API/2026-07-09-13-52-17.gh-issue-153410.neaDgY.rst | https://github.com/python/cpython/pull/153413/files#diff-4439fe2139a8cbbb9c1926d3713b40baaf972501e51432d3b8974a51cbd98784 |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Misc/NEWS.d/next/C_API/2026-07-09-13-52-17.gh-issue-153410.neaDgY.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
| Modules/_testcapi/dict.c | https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Modules/_testcapi/dict.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/pull/153413/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L212 |
| Objects/dictobject.c | https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Objects/dictobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
| vstinner | https://github.com/vstinner |
| Jul 9, 2026 | https://github.com/python/cpython/pull/153413/files#r3551972921 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
|
| https://github.com/python/cpython/pull/153413/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
| Python/marshal.c | https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
|
View file
| https://github.com/sobolevn/cpython/blob/0381bad5cb8cef9906ed8e22f219c8f1875a11de/Python/marshal.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153413/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
|
| https://github.com/python/cpython/actions/runs/41465585752/job/125345837914?pr=153413 |
|
| https://github.com/python/cpython/actions/runs/41465585752/job/125345839138?pr=153413 |
|
| https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
|
| https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
|
| https://github.com/python/cpython/pull/153413/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760 |
| Please reload this page | https://github.com/python/cpython/pull/153413/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |