| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:36d51358-a11b-f4ed-19bf-d8ad196c088e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C416:2265AE:E3ED4B:13AE426:696A915C |
| html-safe-nonce | ecd4ec4e5dfe99e0ce2957710204c57046162eb15de6621875be802decde4841 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDE2OjIyNjVBRTpFM0VENEI6MTNBRTQyNjo2OTZBOTE1QyIsInZpc2l0b3JfaWQiOiI1NDQzOTY3Nzc2NDA3MDY0OTI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2353142c3bae3f27008016cc0490cfd96f0871b5099192483b3731943d191d6e |
| hovercard-subject-tag | pull_request:2804917075 |
| 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/138582/files |
| twitter:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| og:image:alt | This only adds the Py_TPFLAGS_IMMUTABLETYPE flag and assumes that other GC-related issues are solved (not all types are actually empty). I've added NEWS entries just because we also mention tra... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/138582/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138582%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138582%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/138582/files |
| Reload | https://github.com/python/cpython/pull/138582/files |
| Reload | https://github.com/python/cpython/pull/138582/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/138582/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/138582/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| 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 |
| picnixz | https://github.com/picnixz |
| python:main | https://github.com/python/cpython/tree/main |
| picnixz:feat/gc/immutable-heap-types-116946 | https://github.com/picnixz/cpython/tree/feat/gc/immutable-heap-types-116946 |
|
Conversation
5
| https://github.com/python/cpython/pull/138582 |
|
Commits
10
| https://github.com/python/cpython/pull/138582/commits |
|
Checks
47
| https://github.com/python/cpython/pull/138582/checks |
|
Files changed
| https://github.com/python/cpython/pull/138582/files |
| Please reload this page | https://github.com/python/cpython/pull/138582/files |
|
gh-116946: add Py_TPFLAGS_IMMUTABLETYPE to several internal types
| https://github.com/python/cpython/pull/138582/files#top |
|
Show all changes
10 commits
| https://github.com/python/cpython/pull/138582/files |
|
53c9fe8
make `_tkinter.Tcl_Obj` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/53c9fe80cceeb997767c2eab2f5f11eda6f502ee |
|
8db0113
make `_curses_panel.panel` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/8db011335e99bc21231ad3dfa3559c00e418fdcb |
|
c7213ac
make `_tkinter.tkapp` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/c7213ac07acec82651c081ba764cf184c1a9ed4f |
|
443908f
make `_tkinter.tktimertoken` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/443908f582add0bc17e8383b16b9ad405e5e5198 |
|
2ceb790
make `zlib.Compress` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/2ceb790da6d6c32482b8ed67ea6b3231bfc35715 |
|
2b0f8ef
make `zlib.Decompress` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/2b0f8efaa337109c760964d185c84cd36e5bd497 |
|
ba55263
make `[posix,nt].ScandirIterator` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/ba552636c4bcba0ae0e5b7d3f3bd3376ee156219 |
|
934432e
make `[posix,nt].DirEntry` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/934432e15e380144836541796c518ac0a907f6ad |
|
60f9545
make `_remote_debugging.RemoteUnwinder` immutable
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/60f9545097083445e0fed70e05929b108bc191dc |
|
6405c1c
blurb
picnixz Sep 6, 2025
| https://github.com/python/cpython/pull/138582/commits/6405c1cbe556e6a2026595c03084f309b7b57bf3 |
|
Clear filters
| https://github.com/python/cpython/pull/138582/files |
| Please reload this page | https://github.com/python/cpython/pull/138582/files |
| Please reload this page | https://github.com/python/cpython/pull/138582/files |
|
2025-09-06-14-47-23.gh-issue-116946.hj_u1t.rst
| https://github.com/python/cpython/pull/138582/files#diff-4d7ff5c9c256741f79b6ebfee1cd7b973ab64ea18b40b01c076b20d059ca9193 |
|
2025-09-06-14-53-19.gh-issue-116946.c-npxd.rst
| https://github.com/python/cpython/pull/138582/files#diff-041752bacf36fc0f9b3f372f415e1d73ab6d53684bee16465217bc334d1166e7 |
|
2025-09-06-14-54-01.gh-issue-116946.hzQEWI.rst
| https://github.com/python/cpython/pull/138582/files#diff-97171262988a2939c406a9f60fb991a42cf195cd318097f33842de3103bfa437 |
|
2025-09-06-14-56-40.gh-issue-116946.GGIeyO.rst
| https://github.com/python/cpython/pull/138582/files#diff-d547106be5ec38ab1631949c51c78556492f3f15250027fc13aba90785dc1725 |
|
_curses_panel.c
| https://github.com/python/cpython/pull/138582/files#diff-23094b5d60e96c7e35b72a31edc3598c80f6063956b0098d867dd43c613cb5a5 |
|
_remote_debugging_module.c
| https://github.com/python/cpython/pull/138582/files#diff-5a1d64231de6c64b102a221f5a66780b279045b7e9ca4b37fbc3ed172ed75f32 |
|
_tkinter.c
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
posixmodule.c
| https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
zlibmodule.c
| https://github.com/python/cpython/pull/138582/files#diff-295b58a9ad1abea83244636cd413e54a5114dcaf34df95f8ca5db806fc6ab188 |
| Misc/NEWS.d/next/Library/2025-09-06-14-47-23.gh-issue-116946.hj_u1t.rst | https://github.com/python/cpython/pull/138582/files#diff-4d7ff5c9c256741f79b6ebfee1cd7b973ab64ea18b40b01c076b20d059ca9193 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Misc/NEWS.d/next/Library/2025-09-06-14-47-23.gh-issue-116946.hj_u1t.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
| Misc/NEWS.d/next/Library/2025-09-06-14-53-19.gh-issue-116946.c-npxd.rst | https://github.com/python/cpython/pull/138582/files#diff-041752bacf36fc0f9b3f372f415e1d73ab6d53684bee16465217bc334d1166e7 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Misc/NEWS.d/next/Library/2025-09-06-14-53-19.gh-issue-116946.c-npxd.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
| Misc/NEWS.d/next/Library/2025-09-06-14-54-01.gh-issue-116946.hzQEWI.rst | https://github.com/python/cpython/pull/138582/files#diff-97171262988a2939c406a9f60fb991a42cf195cd318097f33842de3103bfa437 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Misc/NEWS.d/next/Library/2025-09-06-14-54-01.gh-issue-116946.hzQEWI.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
| Misc/NEWS.d/next/Library/2025-09-06-14-56-40.gh-issue-116946.GGIeyO.rst | https://github.com/python/cpython/pull/138582/files#diff-d547106be5ec38ab1631949c51c78556492f3f15250027fc13aba90785dc1725 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Misc/NEWS.d/next/Library/2025-09-06-14-56-40.gh-issue-116946.GGIeyO.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
| Modules/_curses_panel.c | https://github.com/python/cpython/pull/138582/files#diff-23094b5d60e96c7e35b72a31edc3598c80f6063956b0098d867dd43c613cb5a5 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Modules/_curses_panel.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/138582/files#diff-23094b5d60e96c7e35b72a31edc3598c80f6063956b0098d867dd43c613cb5a5 |
|
| https://github.com/python/cpython/pull/138582/files#diff-23094b5d60e96c7e35b72a31edc3598c80f6063956b0098d867dd43c613cb5a5 |
| Modules/_remote_debugging_module.c | https://github.com/python/cpython/pull/138582/files#diff-5a1d64231de6c64b102a221f5a66780b279045b7e9ca4b37fbc3ed172ed75f32 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Modules/_remote_debugging_module.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/138582/files#diff-5a1d64231de6c64b102a221f5a66780b279045b7e9ca4b37fbc3ed172ed75f32 |
|
| https://github.com/python/cpython/pull/138582/files#diff-5a1d64231de6c64b102a221f5a66780b279045b7e9ca4b37fbc3ed172ed75f32 |
| Modules/_tkinter.c | https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Modules/_tkinter.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
|
| https://github.com/python/cpython/pull/138582/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd |
| Modules/posixmodule.c | https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Modules/posixmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/138582/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
| Modules/zlibmodule.c | https://github.com/python/cpython/pull/138582/files#diff-295b58a9ad1abea83244636cd413e54a5114dcaf34df95f8ca5db806fc6ab188 |
|
View file
| https://github.com/picnixz/cpython/blob/6405c1cbe556e6a2026595c03084f309b7b57bf3/Modules/zlibmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/138582/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/138582/files#diff-295b58a9ad1abea83244636cd413e54a5114dcaf34df95f8ca5db806fc6ab188 |
|
| https://github.com/python/cpython/pull/138582/files#diff-295b58a9ad1abea83244636cd413e54a5114dcaf34df95f8ca5db806fc6ab188 |
|
| https://github.com/python/cpython/pull/138582/files#diff-295b58a9ad1abea83244636cd413e54a5114dcaf34df95f8ca5db806fc6ab188 |
| Please reload this page | https://github.com/python/cpython/pull/138582/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 |