| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bb1e3a43-65c4-4b71-745a-25254a92a6f2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A47A:15D295:1137FA5:17F32E2:696A8D33 |
| html-safe-nonce | a1ebec0c842678f096823bc0607123e23e734950d983cfe36135924c06b3c5e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDdBOjE1RDI5NToxMTM3RkE1OjE3RjMyRTI6Njk2QThEMzMiLCJ2aXNpdG9yX2lkIjoiODI0Nzk5MTA2ODg1MDI5NDA2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc16094b8fef853bc4fe1eae08bbd7e62d65cc88887cd06ea08b190e3644fa09 |
| hovercard-subject-tag | pull_request:625214958 |
| 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/25687/files |
| twitter:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue28254 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| 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 | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/25687/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25687%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%2F25687%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/25687/files |
| Reload | https://github.com/python/cpython/pull/25687/files |
| Reload | https://github.com/python/cpython/pull/25687/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/25687/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/25687/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 |
| vstinner | https://github.com/vstinner |
| python:master | https://github.com/python/cpython/tree/master |
| scoder:bpo-28254_gc_capi | https://github.com/scoder/cpython/tree/bpo-28254_gc_capi |
|
Conversation
49
| https://github.com/python/cpython/pull/25687 |
|
Commits
17
| https://github.com/python/cpython/pull/25687/commits |
|
Checks
0
| https://github.com/python/cpython/pull/25687/checks |
|
Files changed
| https://github.com/python/cpython/pull/25687/files |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
|
bpo-28254: Add a C-API for controlling the state of the garbage collector
| https://github.com/python/cpython/pull/25687/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/25687/files |
|
6229a31
bpo-28254: Add a C-API for controlling the state of the garbage colle…
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/6229a31f576fd80e23139dd4a3f8211db9c51969 |
|
bfbadb9
bpo-28254: Improve markup and add a What's New entry.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/bfbadb90eeac3d6ba5c51f6d2bfe41bfa495ec37 |
|
f41d269
Apply suggestions from code review
pablogsal Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/f41d26976f7dff797a8862f17641b2d2684274b3 |
|
56465a9
bpo-28254: Return the previous GC state from the Enable/Disable funct…
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/56465a9c1b8ab8b5c4d0b203abd0881db9187aff |
|
7b6e320
Update Modules/_testcapimodule.c
pablogsal Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/7b6e3203761ad1c491459101f53de58977a46de8 |
|
b7e4ee3
Update Modules/_testcapimodule.c
pablogsal Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/b7e4ee3deb336625f692893f4df457e8569f7e21 |
|
4e11560
Update Modules/_testcapimodule.c
pablogsal Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/4e11560c8faa84e36529410fed1d645c2db064e2 |
|
e5f0077
bpo-28254: Formatting.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/e5f0077f7575d10fe91934ac01441fd9d6b47868 |
|
c64aa42
bpo-28254: Move new functions to a better place (not cutting into the…
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/c64aa42a341592a56ec282beaaf37cffcd126028 |
|
cbee918
Remove an incorrect part of a comment: PyGC_Collect() actually does n…
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/cbee918d35cc8121d1ef2c9acc470d2d72b3c06b |
|
0f7e608
bpo-28254: Add documentation for the PyGC_*() functions.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/0f7e6088301597afccee6b5a1d61f04774c4ae11 |
|
80c3625
bpo-28254: Add new PyGC_*() functions to the stable ABI list.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/80c36257a8749b03607a291fa12322e2c4802292 |
|
25fb2aa
bpo-28254: Apply suggestions from doc review.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/25fb2aa9b341837030eca9aa3d3597d28c183186 |
|
10ad929
Apply suggestions from doc review
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/10ad9294aeeb4aeb01050ea976340867b58f9740 |
|
1ffe937
Add a word on how PyGC_Collect() and gc.collect() differ.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/1ffe9371603f676fa883ffe7a6419dccd1357200 |
|
d517665
Fix version marker.
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/d517665ed8953786e3d8c45cee2c03e9e1e2d203 |
|
84fb2af
Fix version marker (II).
scoder Apr 28, 2021
| https://github.com/python/cpython/pull/25687/commits/84fb2afd755945720d581908dac5309461cc72e8 |
|
Clear filters
| https://github.com/python/cpython/pull/25687/files |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
|
gcsupport.rst
| https://github.com/python/cpython/pull/25687/files#diff-8450fc1abe04c96a80a3fc4efddaccced77286fa01d3f32a7e20b8bb291ce420 |
|
stable_abi.dat
| https://github.com/python/cpython/pull/25687/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3 |
|
3.10.rst
| https://github.com/python/cpython/pull/25687/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
objimpl.h
| https://github.com/python/cpython/pull/25687/files#diff-cba22cdca191d42387ce16b30235bf2d36934a58a488f2b56d5bc6965e3a157d |
|
2021-04-28-12-33-44.bpo-28254.a2561e.rst
| https://github.com/python/cpython/pull/25687/files#diff-44b300e91278762d0b8a38f0db3f6f29ca6c97ad078e7f4e262194152c89ddc9 |
|
_testcapimodule.c
| https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
gcmodule.c
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
| Doc/c-api/gcsupport.rst | https://github.com/python/cpython/pull/25687/files#diff-8450fc1abe04c96a80a3fc4efddaccced77286fa01d3f32a7e20b8bb291ce420 |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Doc/c-api/gcsupport.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-8450fc1abe04c96a80a3fc4efddaccced77286fa01d3f32a7e20b8bb291ce420 |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| vstinner | https://github.com/vstinner |
| Apr 28, 2021 | https://github.com/python/cpython/pull/25687/files#r622256066 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @pablogsal | https://github.com/pablogsal |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| Doc/data/stable_abi.dat | https://github.com/python/cpython/pull/25687/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3 |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Doc/data/stable_abi.dat |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3 |
|
| https://github.com/python/cpython/pull/25687/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3 |
| Doc/whatsnew/3.10.rst | https://github.com/python/cpython/pull/25687/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Doc/whatsnew/3.10.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
|
| https://github.com/python/cpython/pull/25687/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
| Include/objimpl.h | https://github.com/python/cpython/pull/25687/files#diff-cba22cdca191d42387ce16b30235bf2d36934a58a488f2b56d5bc6965e3a157d |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Include/objimpl.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-cba22cdca191d42387ce16b30235bf2d36934a58a488f2b56d5bc6965e3a157d |
|
| https://github.com/python/cpython/pull/25687/files#diff-cba22cdca191d42387ce16b30235bf2d36934a58a488f2b56d5bc6965e3a157d |
| Misc/NEWS.d/next/C API/2021-04-28-12-33-44.bpo-28254.a2561e.rst | https://github.com/python/cpython/pull/25687/files#diff-44b300e91278762d0b8a38f0db3f6f29ca6c97ad078e7f4e262194152c89ddc9 |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Misc/NEWS.d/next/C%20API/2021-04-28-12-33-44.bpo-28254.a2561e.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| Modules/_testcapimodule.c | https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Modules/_testcapimodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
| vstinner | https://github.com/vstinner |
| Apr 28, 2021 | https://github.com/python/cpython/pull/25687/files#r622224947 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| scoder | https://github.com/scoder |
| Apr 28, 2021 | https://github.com/python/cpython/pull/25687/files#r622227250 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| vstinner | https://github.com/vstinner |
| Apr 28, 2021 | https://github.com/python/cpython/pull/25687/files#r622245854 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
| scoder | https://github.com/scoder |
| Apr 28, 2021 | https://github.com/python/cpython/pull/25687/files#r622275451 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25687/files |
|
| https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/25687/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
| Modules/gcmodule.c | https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
View file
| https://github.com/scoder/cpython/blob/84fb2afd755945720d581908dac5309461cc72e8/Modules/gcmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25687/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| https://github.com/python/cpython/pull/25687/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77 |
|
| 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 |