| 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:fd89c320-a92b-5400-610d-1c31279ec8cc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 87BA:CC1A4:3E992E9:4F905A4:6B0210C6 |
| html-safe-nonce | 93870958377caaccac958d0ee6623251fdb1286cc70e1a346c71a39a5fd83bec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0JBOkNDMUE0OjNFOTkyRTk6NEY5MDVBNDo2QjAyMTBDNiIsInZpc2l0b3JfaWQiOiI3MDI4ODg3Njc4NzY2NjgyMzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b92e427fd83a40a935fb67848855fe995eaaf2ed7299d0962bd9b7578eb0e46 |
| hovercard-subject-tag | pull_request:2897477989 |
| 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/139773/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Issue: gh-139772
📚 Documentation preview 📚: https://cpython-previews--139773.org.readthedocs.build/ |
| 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/139773/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139773%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%2F139773%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/139773/files |
| Reload | https://github.com/python/cpython/pull/139773/files |
| Reload | https://github.com/python/cpython/pull/139773/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 |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:dict_presized | https://github.com/vstinner/cpython/tree/dict_presized |
|
Conversation
19
| https://github.com/python/cpython/pull/139773 |
|
Commits
2
| https://github.com/python/cpython/pull/139773/commits |
|
Checks
0
| https://github.com/python/cpython/pull/139773/checks |
|
Files changed
| https://github.com/python/cpython/pull/139773/files |
| Please reload this page | https://github.com/python/cpython/pull/139773/files |
|
gh-139772: Add PyDict_NewPresized() function
| https://github.com/python/cpython/pull/139773/files#top |
|
Show all changes
2 commits
| https://github.com/python/cpython/pull/139773/files |
|
8a61f5a
gh-139772: Add PyDict_NewPresized() function
vstinner Oct 8, 2025
| https://github.com/python/cpython/pull/139773/commits/8a61f5aa3cc81081185a694f0be9a0c9e390b515 |
|
4b34da9
Fix the doc
vstinner Oct 12, 2025
| https://github.com/python/cpython/pull/139773/commits/4b34da958af12e13942c6ebccd6a09d229e2fd84 |
|
Clear filters
| https://github.com/python/cpython/pull/139773/files |
| Please reload this page | https://github.com/python/cpython/pull/139773/files |
| Please reload this page | https://github.com/python/cpython/pull/139773/files |
|
dict.rst
| https://github.com/python/cpython/pull/139773/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
3.15.rst
| https://github.com/python/cpython/pull/139773/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
dictobject.h
| https://github.com/python/cpython/pull/139773/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
|
test_dict.py
| https://github.com/python/cpython/pull/139773/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
|
2025-10-08-15-26-21.gh-issue-139772.HBZeQA.rst
| https://github.com/python/cpython/pull/139773/files#diff-80466dec0a8d0530df0b233260ee245b3788c289f76ac7ba2f137b36f1c4587b |
|
2025-10-12-14-38-56.gh-issue-139772.rIdTy5.rst
| https://github.com/python/cpython/pull/139773/files#diff-166963880895d7bace17daaaa15f7244dae31271c70536b089487cd9189a9e90 |
|
dict.c
| https://github.com/python/cpython/pull/139773/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
dictobject.c
| https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114 |
| Doc/c-api/dict.rst | https://github.com/python/cpython/pull/139773/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Doc/c-api/dict.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
| https://github.com/python/cpython/pull/139773/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.15.rst | https://github.com/python/cpython/pull/139773/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Doc/whatsnew/3.15.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
| https://github.com/python/cpython/pull/139773/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
| https://github.com/python/cpython/pull/139773/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
| Include/cpython/dictobject.h | https://github.com/python/cpython/pull/139773/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Include/cpython/dictobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
|
| https://github.com/python/cpython/pull/139773/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225 |
| Lib/test/test_capi/test_dict.py | https://github.com/python/cpython/pull/139773/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Lib/test/test_capi/test_dict.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b |
| Misc/NEWS.d/next/C_API/2025-10-08-15-26-21.gh-issue-139772.HBZeQA.rst | https://github.com/python/cpython/pull/139773/files#diff-80466dec0a8d0530df0b233260ee245b3788c289f76ac7ba2f137b36f1c4587b |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Misc/NEWS.d/next/C_API/2025-10-08-15-26-21.gh-issue-139772.HBZeQA.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
| Misc/NEWS.d/next/C_API/2025-10-12-14-38-56.gh-issue-139772.rIdTy5.rst | https://github.com/python/cpython/pull/139773/files#diff-166963880895d7bace17daaaa15f7244dae31271c70536b089487cd9189a9e90 |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Misc/NEWS.d/next/C_API/2025-10-12-14-38-56.gh-issue-139772.rIdTy5.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
| Modules/_testcapi/dict.c | https://github.com/python/cpython/pull/139773/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Modules/_testcapi/dict.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/pull/139773/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/pull/139773/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L212 |
| Objects/dictobject.c | https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
View file
| https://github.com/vstinner/cpython/blob/4b34da958af12e13942c6ebccd6a09d229e2fd84/Objects/dictobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139773/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/139773/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| 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 |