René's URL Explorer Experiment


Title: [C API] Add PyDict_NewPresized() function · Issue #139772 · python/cpython · GitHub

Open Graph Title: [C API] Add PyDict_NewPresized() function · Issue #139772 · python/cpython

X Title: [C API] Add PyDict_NewPresized() function · Issue #139772 · python/cpython

Description: There is a private _PyDict_NewPresized() function which is used by 11 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) cython (3.1.4) frozendict (2.4.6) gevent (25.9.1) mercurial (7.1.1) mypy (1.18.2) mypy_dev-1.19.0a2 numba (0....

Open Graph Description: There is a private _PyDict_NewPresized() function which is used by 11 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) cython (3.1.4) frozendict (2.4.6) gevent (25.9.1) mercurial (7.1.1) m...

X Description: There is a private _PyDict_NewPresized() function which is used by 11 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) cython (3.1.4) frozendict (2.4.6) gevent (25.9.1) mercurial (7.1.1) m...

Opengraph URL: https://github.com/python/cpython/issues/139772

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] Add PyDict_NewPresized() function","articleBody":"There is a private `_PyDict_NewPresized()` function which is used by 11 projects of the PyPI top 15,000 projects:\n\n* Nuitka (2.7.16)\n* cython (3.1.4)\n* frozendict (2.4.6)\n* gevent (25.9.1)\n* mercurial (7.1.1)\n* mypy (1.18.2)\n* mypy_dev-1.19.0a2\n* numba (0.62.0)\n* orjson (3.11.3)\n* ormsgpack (1.10.0)\n* serpyco_rs (1.17.1)\n\nI propose to make the function public.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139773\n* gh-139963\n* gh-141682\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2025-10-08T13:25:05Z","url":"https://github.com/python/cpython/issues/139772"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aeabb4c0-4e87-9e13-a9f6-118e1d89a430
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B1C:380435:4D2B34:615CEF:6B020227
html-safe-noncebe218f61a8a63980df206d18da7082421db7af36bb988fafd27f246d23f3ffa0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjFDOjM4MDQzNTo0RDJCMzQ6NjE1Q0VGOjZCMDIwMjI3IiwidmlzaXRvcl9pZCI6IjU2MTI0NzU1ODcwMjIxNjA0MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa3929ca93dc73f0c58702d1370b4174630b9babd7c6d613754915b0eda8f08a
hovercard-subject-tagissue:3495443899
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139772/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e01db494d51b5753057e06322c15ad1c4f7a66be3b1e1eb2874ddd61b67aa94e/python/cpython/issues/139772
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e01db494d51b5753057e06322c15ad1c4f7a66be3b1e1eb2874ddd61b67aa94e/python/cpython/issues/139772
og:image:altThere is a private _PyDict_NewPresized() function which is used by 11 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) cython (3.1.4) frozendict (2.4.6) gevent (25.9.1) mercurial (7.1.1) m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/139772#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139772
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139772
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/139772
Reloadhttps://github.com/python/cpython/issues/139772
Reloadhttps://github.com/python/cpython/issues/139772
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139772
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139772
[C API] Add PyDict_NewPresized() functionhttps://github.com/python/cpython/issues/139772#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 8, 2025https://github.com/python/cpython/issues/139772#issue-3495443899
gh-139772: Add PyDict_NewPresized() function #139773https://github.com/python/cpython/pull/139773
gh-139772: Add PyDict_FromItems() function #139963https://github.com/python/cpython/pull/139963
gh-139772: Add PyDict_FromKeysAndValues() function #141682https://github.com/python/cpython/pull/141682
Nexthttps://github.com/python/cpython/issues/139772?timeline_page=1
vstinnerhttps://github.com/vstinner
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
on Oct 8, 2025https://github.com/python/cpython/issues/139772#event-20163980909
vstinnerhttps://github.com/vstinner
on Oct 8, 2025https://github.com/python/cpython/issues/139772#event-20164013268
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/8beea1538ad8d747a7d7cd13928ec91d8547f556
pythongh-139772https://github.com/python/cpython/issues/139772
8beea15https://github.com/vstinner/cpython/commit/8beea1538ad8d747a7d7cd13928ec91d8547f556
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/bc028e92ee5e058123272b6fa3ba30b489e94e7d
pythongh-139772https://github.com/python/cpython/issues/139772
bc028e9https://github.com/vstinner/cpython/commit/bc028e92ee5e058123272b6fa3ba30b489e94e7d
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/f63a8c3ef84387e755bc0b042569626bf3ccf9ac
pythongh-139772https://github.com/python/cpython/issues/139772
f63a8c3https://github.com/vstinner/cpython/commit/f63a8c3ef84387e755bc0b042569626bf3ccf9ac
picnixzhttps://github.com/picnixz
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
on Oct 8, 2025https://github.com/python/cpython/issues/139772#event-20165589240
https://github.com/methane
methanehttps://github.com/methane
on Oct 9, 2025https://github.com/python/cpython/issues/139772#issuecomment-3385134698
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 9, 2025https://github.com/python/cpython/issues/139772#issuecomment-3385998500
https://github.com/methane
methanehttps://github.com/methane
on Oct 10, 2025https://github.com/python/cpython/issues/139772#issuecomment-3387893436
https://github.com/methane
methanehttps://github.com/methane
on Oct 10, 2025https://github.com/python/cpython/issues/139772#issuecomment-3387963629
https://github.com/methane
methanehttps://github.com/methane
on Oct 10, 2025https://github.com/python/cpython/issues/139772#issuecomment-3389177605
https://foss.heptapod.net/mercurial/mercurial-devel/-/issues/10029https://foss.heptapod.net/mercurial/mercurial-devel/-/issues/10029
https://github.com/methane
methanehttps://github.com/methane
on Oct 10, 2025https://github.com/python/cpython/issues/139772#issuecomment-3389279185
cython/cython#7201https://github.com/cython/cython/issues/7201
https://github.com/methane
methanehttps://github.com/methane
on Oct 11, 2025https://github.com/python/cpython/issues/139772#issuecomment-3393244917
https://github.com/scoder
scoderhttps://github.com/scoder
on Oct 11, 2025https://github.com/python/cpython/issues/139772#issuecomment-3393386227
vstinnerhttps://github.com/vstinner
on Oct 11, 2025https://github.com/python/cpython/issues/139772#event-20226113013
pythongh-139772: Add PyDict_FromItems() functionhttps://github.com/vstinner/cpython/commit/4615e77628f2555a89a551f028a3b86b3cf87690
pythongh-139772https://github.com/python/cpython/issues/139772
4615e77https://github.com/vstinner/cpython/commit/4615e77628f2555a89a551f028a3b86b3cf87690
vstinnerhttps://github.com/vstinner
on Oct 12, 2025https://github.com/python/cpython/issues/139772#event-20230763196
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/32feddbe9ff5b7f11be1115b75d63f186243a061
pythongh-139772https://github.com/python/cpython/issues/139772
32feddbhttps://github.com/vstinner/cpython/commit/32feddbe9ff5b7f11be1115b75d63f186243a061
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/eb555c6c9f4d9a991edf8c2b1f52573ad35a8add
pythongh-139772https://github.com/python/cpython/issues/139772
eb555c6https://github.com/vstinner/cpython/commit/eb555c6c9f4d9a991edf8c2b1f52573ad35a8add
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/8bb971592e0148d1ccbbe532ed62cd1a1a7e4524
pythongh-139772https://github.com/python/cpython/issues/139772
8bb9715https://github.com/vstinner/cpython/commit/8bb971592e0148d1ccbbe532ed62cd1a1a7e4524
pythongh-139772: Add PyDict_NewPresized() functionhttps://github.com/vstinner/cpython/commit/8a61f5aa3cc81081185a694f0be9a0c9e390b515
pythongh-139772https://github.com/python/cpython/issues/139772
8a61f5ahttps://github.com/vstinner/cpython/commit/8a61f5aa3cc81081185a694f0be9a0c9e390b515
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 12, 2025https://github.com/python/cpython/issues/139772#issuecomment-3394335829
#139773https://github.com/python/cpython/pull/139773
https://github.com/scoder
scoderhttps://github.com/scoder
on Oct 17, 2025https://github.com/python/cpython/issues/139772#issuecomment-3414906112
https://github.com/methane
methanehttps://github.com/methane
on Oct 18, 2025https://github.com/python/cpython/issues/139772#issuecomment-3417938350
https://github.com/scoder
scoderhttps://github.com/scoder
on Oct 19, 2025https://github.com/python/cpython/issues/139772#issuecomment-3419513389
https://github.com/encukou
encukouhttps://github.com/encukou
on Oct 20, 2025https://github.com/python/cpython/issues/139772#issuecomment-3422160044
can't add new flags to that fieldhttps://github.com/python/cpython/issues/134860
vstinnerhttps://github.com/vstinner
on Nov 17, 2025https://github.com/python/cpython/issues/139772#event-20992631426
pythongh-139772: Add PyDict_FromItems() functionhttps://github.com/vstinner/cpython/commit/9d3360011c10c38b9765265d450adc3312efe9e2
pythongh-139772https://github.com/python/cpython/issues/139772
9d33600https://github.com/vstinner/cpython/commit/9d3360011c10c38b9765265d450adc3312efe9e2
pythongh-139772: Add PyDict_FromItems() functionhttps://github.com/vstinner/cpython/commit/e4ff754920af4969583dbb1e75a630a2e4c29cc5
pythongh-139772https://github.com/python/cpython/issues/139772
e4ff754https://github.com/vstinner/cpython/commit/e4ff754920af4969583dbb1e75a630a2e4c29cc5
saschazepterhttps://github.com/saschazepter
on Nov 24, 2025https://github.com/python/cpython/issues/139772#event-21142550269
cext: remove `_dict_new_presized` utilhttps://github.com/saschazepter/hg/commit/f11db7ff2712a525785c3cf62cfa60566d440010
f11db7fhttps://github.com/saschazepter/hg/commit/f11db7ff2712a525785c3cf62cfa60566d440010
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on May 29, 2026https://github.com/python/cpython/issues/139772#issuecomment-4575009318
capi-workgroup/decisions#90 (comment)https://github.com/capi-workgroup/decisions/issues/90#issuecomment-4575000048
vstinnerhttps://github.com/vstinner
not plannedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on May 29, 2026https://github.com/python/cpython/issues/139772#event-26109210091
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Oct 11, 2026https://github.com/python/cpython/issues/139772#issuecomment-6108299992
msgspec/msgspec#1243https://github.com/msgspec/msgspec/pull/1243
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/139772
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/139772
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.