René's URL Explorer Experiment


Title: gh-160147: Add `PySetBuilder` C API by vstinner · Pull Request #162582 · python/cpython · GitHub

Open Graph Title: gh-160147: Add `PySetBuilder` C API by vstinner · Pull Request #162582 · python/cpython

X Title: gh-160147: Add `PySetBuilder` C API by vstinner · Pull Request #162582 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This PR is based on PR gh-160154. It renames PyFrozenSetWriter to PyFrozenSetBuilder, and adds the ability to also create set objects, not only frozenset objects. Use the new API in: Modules/_abc....

X Description: This PR is based on PR gh-160154. It renames PyFrozenSetWriter to PyFrozenSetBuilder, and adds the ability to also create set objects, not only frozenset objects. Use the new API in: Modules/_abc....

Opengraph URL: https://github.com/python/cpython/pull/162582

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c493c3b1-f81d-82cf-274f-e0a6a40074c6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D94:DAF5F:D03E30:10C74AC:6B064088
html-safe-noncefd754f2b98d2a6d06952c26931cac02a5b5bc89d9ae12393559f54de05eabd0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk0OkRBRjVGOkQwM0UzMDoxMEM3NEFDOjZCMDY0MDg4IiwidmlzaXRvcl9pZCI6IjQ2NzUzODg1ODg2MTAxNzUxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0feabac0084a62b4459941a8d3f396f181111bb318b0662acd585790ce72ed7e
hovercard-subject-tagpull_request:5479091152
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/162582/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f513f37f5cf5e8dcb9aad48032a5e336523fa3d329599fbb333d746055a57855/python/cpython/pull/162582
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f513f37f5cf5e8dcb9aad48032a5e336523fa3d329599fbb333d746055a57855/python/cpython/pull/162582
og:image:altThis PR is based on PR gh-160154. It renames PyFrozenSetWriter to PyFrozenSetBuilder, and adds the ability to also create set objects, not only frozenset objects. Use the new API in: Modules/_abc....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-cache
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
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/162582#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162582
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%2Fpull%2F162582
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/162582
Reloadhttps://github.com/python/cpython/pull/162582
Reloadhttps://github.com/python/cpython/pull/162582
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:setbuilderhttps://github.com/vstinner/cpython/tree/setbuilder
Conversationhttps://github.com/python/cpython/pull/162582
Commits1 (1)https://github.com/python/cpython/pull/162582/commits
Checkshttps://github.com/python/cpython/pull/162582/checks
Files changedhttps://github.com/python/cpython/pull/162582/files
gh-160147: Add PySetBuilder C APIhttps://github.com/python/cpython/pull/162582#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:setbuilderhttps://github.com/vstinner/cpython/tree/setbuilder
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 24, 2026https://github.com/python/cpython/pull/162582#issue-6589948379
Please reload this pagehttps://github.com/python/cpython/pull/162582
gh-160154https://github.com/python/cpython/pull/160154
gh-158660https://github.com/python/cpython/issues/158660
[C API] Add PyFrozenWriter C API to create a frozenset object #160147https://github.com/python/cpython/issues/160147
Please reload this pagehttps://github.com/python/cpython/pull/162582
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
1st1https://github.com/1st1
AA-Turnerhttps://github.com/AA-Turner
ZeroIntensityhttps://github.com/ZeroIntensity
asvetlovhttps://github.com/asvetlov
gpsheadhttps://github.com/gpshead
kumaraditya303https://github.com/kumaraditya303
picnixzhttps://github.com/picnixz
rhettingerhttps://github.com/rhettinger
willingchttps://github.com/willingc
code ownershttps://github.com/python/cpython/blob/4743be93468e5ce3e1055dcda58ba4fb6f1ce383/.github/CODEOWNERS#L378
November 24, 2026 19:42https://github.com/python/cpython/pull/162582#event-37172490903
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 24, 2026 https://github.com/python/cpython/pull/162582#ref-issue-5691213452
PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660 https://github.com/python/cpython/issues/158660
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 24, 2026https://github.com/python/cpython/pull/162582#event-37172507808
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Nov 24, 2026https://github.com/python/cpython/pull/162582#issuecomment-7142547259
Please reload this pagehttps://github.com/python/cpython/pull/162582
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#36141753https://app.readthedocs.org/projects/cpython-previews/builds/36141753/
b9cab78https://github.com/python/cpython/commit/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
mainhttps://cpython-previews.readthedocs.io/en/main/
4743be9https://github.com/python/cpython/commit/4743be93468e5ce3e1055dcda58ba4fb6f1ce383
  🔍 Preview build   https://cpython-previews--162582.org.readthedocs.build/en/162582/
c-api/set.htmlhttps://cpython-previews--162582.org.readthedocs.build/en/162582/c-api/set.html
whatsnew/3.16.htmlhttps://cpython-previews--162582.org.readthedocs.build/en/162582/whatsnew/3.16.html
whatsnew/changelog.htmlhttps://cpython-previews--162582.org.readthedocs.build/en/162582/whatsnew/changelog.html
Please reload this pagehttps://github.com/python/cpython/pull/162582
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 24, 2026https://github.com/python/cpython/pull/162582#issuecomment-7142706469
#160154 (comment)https://github.com/python/cpython/pull/160154#issuecomment-6407821897
bench.patchhttps://github.com/user-attachments/files/35369860/bench.patch
bench.pyhttps://github.com/user-attachments/files/35369866/bench.py
bench.shhttps://github.com/user-attachments/files/35369850/bench.sh
Please reload this pagehttps://github.com/python/cpython/pull/162582
https://github.com/vstinner
pythongh-160147https://github.com/python/cpython/issues/160147
: Addhttps://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
PySetBuilderhttps://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
C APIhttps://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
b9cab78https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
force-pushedhttps://github.com/python/cpython/compare/018d6ba17e9f922f180ef52fbe2bd6116744ebcd..b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
018d6bahttps://github.com/python/cpython/commit/018d6ba17e9f922f180ef52fbe2bd6116744ebcd
b9cab78https://github.com/python/cpython/commit/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
Compare https://github.com/python/cpython/compare/018d6ba17e9f922f180ef52fbe2bd6116744ebcd..b9cab78452b3bb9dd0097d27d15b6aa6195cbb95
November 24, 2026 19:56https://github.com/python/cpython/pull/162582#event-37173908223
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 24, 2026https://github.com/python/cpython/pull/162582#event-37173913410
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Nov 24, 2026https://github.com/python/cpython/pull/162582#event-37173925426
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 24, 2026 https://github.com/python/cpython/pull/162582#ref-issue-5970101213
[C API] Add PyFrozenWriter C API to create a frozenset object #160147 https://github.com/python/cpython/issues/160147
gh-160147: Add PyFrozenSetWriter C API #160154 https://github.com/python/cpython/pull/160154
Add PySetBuilder C API capi-workgroup/decisions#119 https://github.com/capi-workgroup/decisions/issues/119
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162582
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/asvetlov
asvetlov https://github.com/asvetlov
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/willingc
willingc https://github.com/willingc
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
Please reload this pagehttps://github.com/python/cpython/pull/162582
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/162582
https://github.com/vstinner
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.