| 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:5b75bf14-d2a5-3f5d-2430-f12cf8f39826 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 940E:8007E:111B33B:16CD932:6B0658FA |
| html-safe-nonce | 8888226c065858a38021de89859c1aa7ff4ef5e46a6c51a2517ccd84230e1571 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDBFOjgwMDdFOjExMUIzM0I6MTZDRDkzMjo2QjA2NThGQSIsInZpc2l0b3JfaWQiOiI0MjA1ODY2MTc0MDE1NDk0Mzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 245d8685f1955ecf8dee09aaecf3ac3095833396ac2a0c7e1308bd190edff87a |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/162582/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 | 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:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/162582/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162582%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%2F162582%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/162582/files |
| Reload | https://github.com/python/cpython/pull/162582/files |
| Reload | https://github.com/python/cpython/pull/162582/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:setbuilder | https://github.com/vstinner/cpython/tree/setbuilder |
|
Conversation
2
| https://github.com/python/cpython/pull/162582 |
|
Commits
1
| https://github.com/python/cpython/pull/162582/commits |
|
Checks
57
| https://github.com/python/cpython/pull/162582/checks |
|
Files changed
11
| https://github.com/python/cpython/pull/162582/files |
|
gh-160147: Add PySetBuilder C API
| https://github.com/python/cpython/pull/162582/files#top |
|
Show all changes
1 commit
| https://github.com/python/cpython/pull/162582/files |
|
b9cab78
gh-160147: Add `PySetBuilder` C API
vstinner Oct 21, 2026
| https://github.com/python/cpython/pull/162582/commits/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95 |
|
Clear filters
| https://github.com/python/cpython/pull/162582/files |
| Please reload this page | https://github.com/python/cpython/pull/162582/files |
| Please reload this page | https://github.com/python/cpython/pull/162582/files |
|
set.rst
| https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
3.16.rst
| https://github.com/python/cpython/pull/162582/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
setobject.h
| https://github.com/python/cpython/pull/162582/files#diff-70a493a0cd7b8b18ad0ab653bbe236a6eac25bf62c926cad51c26edf17414ed1 |
|
test_set.py
| https://github.com/python/cpython/pull/162582/files#diff-2edaddf44e38a5a58e62355613f9f1fb685ef67dc95b5f5af7ca7886af8fc0a6 |
|
2026-10-21-18-20-57.gh-issue-160147.7uo4pF.rst
| https://github.com/python/cpython/pull/162582/files#diff-6b9bf6fb0b35e4f21b701bac8cc5a6e7f2c29dd4847e62361a07dba14f0e8f30 |
|
_abc.c
| https://github.com/python/cpython/pull/162582/files#diff-d88c94f372c2e10cea3d5f2e39c6ce940eb2cfe664d913eeab7f74d23d636687 |
|
_asynciomodule.c
| https://github.com/python/cpython/pull/162582/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
_hashopenssl.c
| https://github.com/python/cpython/pull/162582/files#diff-b4fd2e5e447a6f18fb2508c350524c5cb1feed8ec92d70822eac54431ef71baf |
|
_ssl.c
| https://github.com/python/cpython/pull/162582/files#diff-89879be484d86da4e77c90d5408b2e10190ee27cc86337cd0f8efc3520d60621 |
|
set.c
| https://github.com/python/cpython/pull/162582/files#diff-bd3b5010b97c56eb41129f5331ad524c23cddce3bdc7004f462aa78041eda451 |
|
setobject.c
| https://github.com/python/cpython/pull/162582/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114 |
| Doc/c-api/set.rst | https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
View file
| https://github.com/python/cpython/blob/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95/Doc/c-api/set.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
| https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
| https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
| https://github.com/python/cpython/pull/162582/files#diff-07d1fcfde1e9d414de9af371d874f3941cc3aa1e38183db492b6a83f7b30181a |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.16.rst | https://github.com/python/cpython/pull/162582/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
View file
| https://github.com/python/cpython/blob/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95/Doc/whatsnew/3.16.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162582/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
| https://github.com/python/cpython/pull/162582/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
| Include/cpython/setobject.h | https://github.com/python/cpython/pull/162582/files#diff-70a493a0cd7b8b18ad0ab653bbe236a6eac25bf62c926cad51c26edf17414ed1 |
|
View file
| https://github.com/python/cpython/blob/b9cab78452b3bb9dd0097d27d15b6aa6195cbb95/Include/cpython/setobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162582/files#diff-70a493a0cd7b8b18ad0ab653bbe236a6eac25bf62c926cad51c26edf17414ed1 |
| Please reload this page | https://github.com/python/cpython/pull/162582/files |
| Please reload this page | https://github.com/python/cpython/pull/162582/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 |