| 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 | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c493c3b1-f81d-82cf-274f-e0a6a40074c6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9D94:DAF5F:D03E30:10C74AC:6B064088 |
| html-safe-nonce | fd754f2b98d2a6d06952c26931cac02a5b5bc89d9ae12393559f54de05eabd0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk0OkRBRjVGOkQwM0UzMDoxMEM3NEFDOjZCMDY0MDg4IiwidmlzaXRvcl9pZCI6IjQ2NzUzODg1ODg2MTAxNzUxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0feabac0084a62b4459941a8d3f396f181111bb318b0662acd585790ce72ed7e |
| hovercard-subject-tag | pull_request:5479091152 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/162582/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f513f37f5cf5e8dcb9aad48032a5e336523fa3d329599fbb333d746055a57855/python/cpython/pull/162582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f513f37f5cf5e8dcb9aad48032a5e336523fa3d329599fbb333d746055a57855/python/cpython/pull/162582 |
| og:image:alt | 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.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/162582#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162582 |
| 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%2F162582 |
| 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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/162582 |
| Reload | https://github.com/python/cpython/pull/162582 |
| Reload | https://github.com/python/cpython/pull/162582 |
| 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 |
| https://github.com/python/cpython |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:setbuilder | https://github.com/vstinner/cpython/tree/setbuilder |
| Conversation | https://github.com/python/cpython/pull/162582 |
| Commits1 (1) | https://github.com/python/cpython/pull/162582/commits |
| Checks | https://github.com/python/cpython/pull/162582/checks |
| Files changed | https://github.com/python/cpython/pull/162582/files |
| gh-160147: Add PySetBuilder C API | https://github.com/python/cpython/pull/162582#top |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:setbuilder | https://github.com/vstinner/cpython/tree/setbuilder |
|
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162582#issue-6589948379 |
| Please reload this page | https://github.com/python/cpython/pull/162582 |
| gh-160154 | https://github.com/python/cpython/pull/160154 |
| gh-158660 | https://github.com/python/cpython/issues/158660 |
| [C API] Add PyFrozenWriter C API to create a frozenset object #160147 | https://github.com/python/cpython/issues/160147 |
| Please reload this page | https://github.com/python/cpython/pull/162582 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| 1st1 | https://github.com/1st1 |
| AA-Turner | https://github.com/AA-Turner |
| ZeroIntensity | https://github.com/ZeroIntensity |
| asvetlov | https://github.com/asvetlov |
| gpshead | https://github.com/gpshead |
| kumaraditya303 | https://github.com/kumaraditya303 |
| picnixz | https://github.com/picnixz |
| rhettinger | https://github.com/rhettinger |
| willingc | https://github.com/willingc |
| code owners | https://github.com/python/cpython/blob/4743be93468e5ce3e1055dcda58ba4fb6f1ce383/.github/CODEOWNERS#L378 |
| November 24, 2026 19:42 | https://github.com/python/cpython/pull/162582#event-37172490903 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://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-app | https://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, 2026 | https://github.com/python/cpython/pull/162582#event-37172507808 |
| https://github.com/apps/read-the-docs-community |
| read-the-docs-community | https://github.com/apps/read-the-docs-community |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162582#issuecomment-7142547259 |
| Please reload this page | https://github.com/python/cpython/pull/162582 |
| cpython-previews | https://app.readthedocs.org/projects/cpython-previews/ |
| #36141753 | https://app.readthedocs.org/projects/cpython-previews/builds/36141753/ |
| b9cab78 | https://github.com/python/cpython/commit/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| main | https://cpython-previews.readthedocs.io/en/main/ |
| 4743be9 | https://github.com/python/cpython/commit/4743be93468e5ce3e1055dcda58ba4fb6f1ce383 |
| 🔍 Preview build | https://cpython-previews--162582.org.readthedocs.build/en/162582/ |
| c-api/set.html | https://cpython-previews--162582.org.readthedocs.build/en/162582/c-api/set.html |
| whatsnew/3.16.html | https://cpython-previews--162582.org.readthedocs.build/en/162582/whatsnew/3.16.html |
| whatsnew/changelog.html | https://cpython-previews--162582.org.readthedocs.build/en/162582/whatsnew/changelog.html |
| Please reload this page | https://github.com/python/cpython/pull/162582 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162582#issuecomment-7142706469 |
| #160154 (comment) | https://github.com/python/cpython/pull/160154#issuecomment-6407821897 |
| bench.patch | https://github.com/user-attachments/files/35369860/bench.patch |
| bench.py | https://github.com/user-attachments/files/35369866/bench.py |
| bench.sh | https://github.com/user-attachments/files/35369850/bench.sh |
| Please reload this page | https://github.com/python/cpython/pull/162582 |
|
| https://github.com/vstinner |
| pythongh-160147 | https://github.com/python/cpython/issues/160147 |
| : Add | https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| PySetBuilder | https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| C API | https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| b9cab78 | https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| force-pushed | https://github.com/python/cpython/compare/018d6ba17e9f922f180ef52fbe2bd6116744ebcd..b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| 018d6ba | https://github.com/python/cpython/commit/018d6ba17e9f922f180ef52fbe2bd6116744ebcd |
| b9cab78 | https://github.com/python/cpython/commit/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
|
Compare
| https://github.com/python/cpython/compare/018d6ba17e9f922f180ef52fbe2bd6116744ebcd..b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
| November 24, 2026 19:56 | https://github.com/python/cpython/pull/162582#event-37173908223 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162582#event-37173913410 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
type-feature
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162582#event-37173925426 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://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 free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://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 page | https://github.com/python/cpython/pull/162582 |
|
| https://github.com/vstinner |
|
| 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 |