| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:aa17739f-61bd-eb57-bba8-17beb9d50f04 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2EC:D7362:79D075:A4B77F:696AB55F |
| html-safe-nonce | 8e7a559a359a3aee28f61434c18e96a2f5c27f5b9f235af3cca925125b0164a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkVDOkQ3MzYyOjc5RDA3NTpBNEI3N0Y6Njk2QUI1NUYiLCJ2aXNpdG9yX2lkIjoiNjU0MDM0ODU1NjQ0NTQyMzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2f47ea2dcf131c329505ea092d5afd0a90f677f0e9d1811dda2e834a0f7eee46 |
| hovercard-subject-tag | pull_request:2920262188 |
| 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/140204/files |
| twitter:image | https://avatars.githubusercontent.com/u/5574866?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5574866?s=400&v=4 |
| og:image:alt | Issue: gh-139951 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/140204/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140204%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%2F140204%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/140204/files |
| Reload | https://github.com/python/cpython/pull/140204/files |
| Reload | https://github.com/python/cpython/pull/140204/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/140204/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/140204/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 |
| efimov-mikhail | https://github.com/efimov-mikhail |
| python:main | https://github.com/python/cpython/tree/main |
| efimov-mikhail:sergey-miryanov-139389-donot-track-immutable-tuples | https://github.com/efimov-mikhail/cpython/tree/sergey-miryanov-139389-donot-track-immutable-tuples |
|
Conversation
42
| https://github.com/python/cpython/pull/140204 |
|
Commits
20
| https://github.com/python/cpython/pull/140204/commits |
|
Checks
41
| https://github.com/python/cpython/pull/140204/checks |
|
Files changed
4
| https://github.com/python/cpython/pull/140204/files |
|
gh-139951: Do not track immutable tuples in GC
| https://github.com/python/cpython/pull/140204/files#top |
|
Show all changes
20 commits
| https://github.com/python/cpython/pull/140204/files |
|
fbb7342
Do not track immutable tuples in PyTuple_Pack
sergey-miryanov Sep 28, 2025
| https://github.com/python/cpython/pull/140204/commits/fbb734250465f91a667d6cce8cb1dc812fc8afd2 |
|
be72b3f
Extra stats
sergey-miryanov Sep 28, 2025
| https://github.com/python/cpython/pull/140204/commits/be72b3f7673b5f826712d4ac97cc7e1f31dbe03e |
|
04f0f66
Implement for all
sergey-miryanov Sep 29, 2025
| https://github.com/python/cpython/pull/140204/commits/04f0f66bb3ba02d7fb2c6a82fbacaab5d2135f53 |
|
3b80c93
Merge branch 'main' into 139389-donot-track-immutable-tuples
sergey-miryanov Oct 10, 2025
| https://github.com/python/cpython/pull/140204/commits/3b80c93b1e88d5f319029ff50038e462ea078b80 |
|
ff81eb2
Count total tuples
sergey-miryanov Oct 10, 2025
| https://github.com/python/cpython/pull/140204/commits/ff81eb2fda1a19abb4e91c0803b47295fbf7a1c5 |
|
f1220e4
expirements
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/f1220e4e2ce783178bc1e8f5f3325499ab127493 |
|
8b7fcd5
some clean
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/8b7fcd5319a48069e1e0d9f1b80d5f9af67ce4db |
|
b281fe8
Remove statistics
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/b281fe82dd5e6a4da578c29dc90635482745ecd4 |
|
5c117a7
Update PyTuple_FromArray
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/5c117a78af501b7d59b39d50d78db9dfe803fb66 |
|
0d7eff1
Helper function is added
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/0d7eff179f2e27ee6eb6b504f7cb496264397bf9 |
|
a679b50
Update Objects/tupleobject.c
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/a679b508c73b944525c57b8b2043876e516a70cf |
|
35dfe24
Update Objects/tupleobject.c
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/35dfe2453047742432b621f7726ff63c700ef608 |
|
4297f8b
Review addressed
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/4297f8b060b3b7b9903d9cb052c6247288d30ed9 |
|
ddfe151
News updated
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/ddfe151ca66cda1159b012c4c8698359c38eff2d |
|
30dd590
expirements
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/30dd59090812cffe943b49af116020f63b074b5e |
|
63c0e3e
Revert GC changes
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/63c0e3ee9b4a857e6c3aafca9ed165da41eec854 |
|
9ce41be
Check tuple tracking after tp_subscipt
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/9ce41be0b9e8fce50bdc61d63051e89dbd3ff49a |
|
77a0373
Review addressed
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/77a0373c9d2387b7100e71e418c520e14e34eab6 |
|
567105f
Address feedback
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/567105fbd919c3ac148d292523ebf845d10cf938 |
|
d00b16a
Merge branch 'main' into sergey-miryanov-139389-donot-track-immutable…
efimov-mikhail Oct 16, 2025
| https://github.com/python/cpython/pull/140204/commits/d00b16a890e9ad23f0284ada0ba897d61451290e |
|
Clear filters
| https://github.com/python/cpython/pull/140204/files |
| Please reload this page | https://github.com/python/cpython/pull/140204/files |
| Please reload this page | https://github.com/python/cpython/pull/140204/files |
|
test_tuple.py
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
test_tuple.py
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
2025-10-16-15-02-11.gh-issue-139951.tqbIsW.rst
| https://github.com/python/cpython/pull/140204/files#diff-2c04bfec92eca6989c5494d4d1b8956c14e3c2cbbc6e5dc8ce40bf6d555bc725 |
|
tupleobject.c
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
| Lib/test/test_capi/test_tuple.py | https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
View file
| https://github.com/efimov-mikhail/cpython/blob/d00b16a890e9ad23f0284ada0ba897d61451290e/Lib/test/test_capi/test_tuple.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140204/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
|
| https://github.com/python/cpython/pull/140204/files#diff-666a430c62401e7e7ef2b95168ac5523aa614e3cebaf0f524aabc9e322029b28 |
| Lib/test/test_tuple.py | https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
View file
| https://github.com/efimov-mikhail/cpython/blob/d00b16a890e9ad23f0284ada0ba897d61451290e/Lib/test/test_tuple.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140204/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
|
| https://github.com/python/cpython/pull/140204/files#diff-bd5127a6c487c9ad4404ea6bf4b5349507600ae1a6e4041c6d1e7d1c08fc3899 |
| Misc/NEWS.d/next/Core_and_Builtins/2025-10-16-15-02-11.gh-issue-139951.tqbIsW.rst | https://github.com/python/cpython/pull/140204/files#diff-2c04bfec92eca6989c5494d4d1b8956c14e3c2cbbc6e5dc8ce40bf6d555bc725 |
|
View file
| https://github.com/efimov-mikhail/cpython/blob/d00b16a890e9ad23f0284ada0ba897d61451290e/Misc/NEWS.d/next/Core_and_Builtins/2025-10-16-15-02-11.gh-issue-139951.tqbIsW.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140204/{{ revealButtonHref }} |
| Objects/tupleobject.c | https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
View file
| https://github.com/efimov-mikhail/cpython/blob/d00b16a890e9ad23f0284ada0ba897d61451290e/Objects/tupleobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140204/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
| Please reload this page | https://github.com/python/cpython/pull/140204/files |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
|
| https://github.com/python/cpython/pull/140204/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77 |
| Please reload this page | https://github.com/python/cpython/pull/140204/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 |