| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:44dfce56-cdc7-87fe-2913-ba381149e180 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB72:3372CB:DC07D2:130EC93:696A847F |
| html-safe-nonce | f1b5e81147232ccc926b07817ba2fa37fa8ab843b70c591f80bad065893afccf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjcyOjMzNzJDQjpEQzA3RDI6MTMwRUM5Mzo2OTZBODQ3RiIsInZpc2l0b3JfaWQiOiI3NTIxMjkyMjQwMjczNzA0MDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e2dfad949f6f275bad7e76cc5edc7b7d1049c489fe89e118eaf63c72b809f2d |
| hovercard-subject-tag | pull_request:591210909 |
| 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/24828/files |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | This is a slight alternative to @eduardo-elizondo's GH-19474, though our main motivations are different. Eddie is looking to optionally reduce the impact of refcounts on the copy-on-write sema... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/24828/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F24828%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%2F24828%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/24828/files |
| Reload | https://github.com/python/cpython/pull/24828/files |
| Reload | https://github.com/python/cpython/pull/24828/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/24828/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/24828/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 |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:master | https://github.com/python/cpython/tree/master |
| ericsnowcurrently:globals-immortal-objects-flags | https://github.com/ericsnowcurrently/cpython/tree/globals-immortal-objects-flags |
|
Conversation
50
| https://github.com/python/cpython/pull/24828 |
|
Commits
16
| https://github.com/python/cpython/pull/24828/commits |
|
Checks
0
| https://github.com/python/cpython/pull/24828/checks |
|
Files changed
| https://github.com/python/cpython/pull/24828/files |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
|
bpo-43503: Make limited API objects effectively immutable.
| https://github.com/python/cpython/pull/24828/files#top |
|
Show all changes
16 commits
| https://github.com/python/cpython/pull/24828/files |
|
4951703
Add support for immortal objects (large neg int means "immortal").
ericsnowcurrently Dec 10, 2020
| https://github.com/python/cpython/pull/24828/commits/4951703306d9852f8bc50248dc0966a9ef86feca |
|
4b1eea3
Switch to a positive number.
ericsnowcurrently Dec 10, 2020
| https://github.com/python/cpython/pull/24828/commits/4b1eea38e5fcc34c98390308bc72e95a0ee59acd |
|
a34f285
Add Py_IMMORTAL_CONST_REFCOUNTS.
ericsnowcurrently Dec 10, 2020
| https://github.com/python/cpython/pull/24828/commits/a34f2856bbe68a19b564161a95b8cbbc49e38105 |
|
3966551
Add a NEWS entry.
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/3966551811e7f30d9fdc5cc015ea764e11a1f7b4 |
|
1a3b4da
Add docs.
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/1a3b4dabf448f0cce2b5513ff35e97c037e032c1 |
|
728f24b
Drop special handling of negative refcounts.
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/728f24bb47d167b024a80400b14b4d53512595f7 |
|
2536e8b
Do not reset the refcount in _PyObject_IsImmortal().
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/2536e8b45f4eae343b91f29a13f626ffc1dd555a |
|
518e9e8
Do not allow immortal objects in the limited API.
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/518e9e84f6eee25be38369ea48825620fa68b953 |
|
277e1ea
Do not re-declare _PyObject_IsImmortal.
ericsnowcurrently Mar 11, 2021
| https://github.com/python/cpython/pull/24828/commits/277e1ea1f3996f15dfda3f44c9a495ca3c224616 |
|
edef342
Go back to using Py_SET_REFCNT() in _Py_NewReference().
ericsnowcurrently Mar 12, 2021
| https://github.com/python/cpython/pull/24828/commits/edef3429eb9c45a8ef139398cc57f3414e880f8b |
|
4d22e00
Fix an accidental line removal.
ericsnowcurrently Mar 12, 2021
| https://github.com/python/cpython/pull/24828/commits/4d22e00271999d64dbb5f278f1a4d7c210686e11 |
|
838f88f
Add more comments and drop the internal-only macros from the docs.
ericsnowcurrently Mar 12, 2021
| https://github.com/python/cpython/pull/24828/commits/838f88fc135ff7a7bcb7fe1f12377991fb594717 |
|
00948a0
Drop a holdover from immortal objects with negative refcounts.
ericsnowcurrently Mar 15, 2021
| https://github.com/python/cpython/pull/24828/commits/00948a007b7316242e489bfdc7d2bd60dfa1505c |
|
00504d9
Move _Py_SET_REFCNT() out of the header file.
ericsnowcurrently Mar 15, 2021
| https://github.com/python/cpython/pull/24828/commits/00504d974d492b66619380419f749c1f37e31509 |
|
e6fc84f
Define _py_is_immortal() only for Py_IMMORTAL_CONST_REFCOUNTS.
ericsnowcurrently Mar 15, 2021
| https://github.com/python/cpython/pull/24828/commits/e6fc84f35290a8254e0e2eaecb502954cf0ab9a0 |
|
f103804
Drop Py_IMMORTAL_CONST_REFCOUNTS and make immortal objects internal.
ericsnowcurrently Mar 12, 2021
| https://github.com/python/cpython/pull/24828/commits/f103804a1fb16d42afd91e420e8e66707ae7adc1 |
|
Clear filters
| https://github.com/python/cpython/pull/24828/files |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
|
pycore_object.h
| https://github.com/python/cpython/pull/24828/files#diff-2a12f738a77b362d74a65949b58c37f2affcd15ba8b1c979b63bd00223b8a456 |
|
object.h
| https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
|
2021-03-11-13-03-15.bpo-40255._1LfiG.rst
| https://github.com/python/cpython/pull/24828/files#diff-14c2226e248223eef759b542f0792ddaf5405e0952da00acc5637faad88d81c8 |
|
object.c
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
| Include/internal/pycore_object.h | https://github.com/python/cpython/pull/24828/files#diff-2a12f738a77b362d74a65949b58c37f2affcd15ba8b1c979b63bd00223b8a456 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f103804a1fb16d42afd91e420e8e66707ae7adc1/Include/internal/pycore_object.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/24828/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/24828/files#diff-2a12f738a77b362d74a65949b58c37f2affcd15ba8b1c979b63bd00223b8a456 |
| vstinner | https://github.com/vstinner |
| Mar 13, 2021 | https://github.com/python/cpython/pull/24828/files#r593754240 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| Mar 15, 2021 | https://github.com/python/cpython/pull/24828/files#r594483911 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
|
| https://github.com/python/cpython/pull/24828/files#diff-2a12f738a77b362d74a65949b58c37f2affcd15ba8b1c979b63bd00223b8a456 |
| Include/object.h | https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f103804a1fb16d42afd91e420e8e66707ae7adc1/Include/object.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/24828/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
|
| https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
|
| https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
|
| https://github.com/python/cpython/pull/24828/files#diff-87272721a5cf1cd9915d6f503f6a7bbefa2f26c935c7ce83ca78706afd0ad05a |
| Misc/NEWS.d/next/Core and Builtins/2021-03-11-13-03-15.bpo-40255._1LfiG.rst | https://github.com/python/cpython/pull/24828/files#diff-14c2226e248223eef759b542f0792ddaf5405e0952da00acc5637faad88d81c8 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f103804a1fb16d42afd91e420e8e66707ae7adc1/Misc/NEWS.d/next/Core%20and%20Builtins/2021-03-11-13-03-15.bpo-40255._1LfiG.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/24828/{{ revealButtonHref }} |
| Objects/object.c | https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f103804a1fb16d42afd91e420e8e66707ae7adc1/Objects/object.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/24828/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
| vstinner | https://github.com/vstinner |
| Mar 13, 2021 | https://github.com/python/cpython/pull/24828/files#r593754963 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
| gpshead | https://github.com/gpshead |
| Mar 14, 2021 | https://github.com/python/cpython/pull/24828/files#r593952392 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| Mar 15, 2021 | https://github.com/python/cpython/pull/24828/files#r594484838 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/24828/files |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
| https://github.com/python/cpython/pull/24828/files#diff-ba56d44ce0dd731d979970b966fde9d8dd15d12a82f727a052a8ad48d4a49363 |
|
| 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 |