| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:be0f0a2c-866c-0c98-c13c-b9873b6f4312 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A3A2:3020D:12A9E6E:1B24D00:6A5614D3 |
| html-safe-nonce | 36dec640a5a85c97c09c9e3b9b8031f3bf5e7f96a4c3c5158f8bc5fac9244f04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0EyOjMwMjBEOjEyQTlFNkU6MUIyNEQwMDo2QTU2MTREMyIsInZpc2l0b3JfaWQiOiIxNDI3ODgyMzk2Mzk3OTk5MzE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cd7a0c9dc6282872b20514765e548c4cb81ec488360f02edb7d05b1aa94f183a |
| hovercard-subject-tag | pull_request:2238552918 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/128012/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f0f6ae7ccd113ee8a372a0967bd22b0c4d332b7d869f3f821818953653231c06/python/cpython/pull/128012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0f6ae7ccd113ee8a372a0967bd22b0c4d332b7d869f3f821818953653231c06/python/cpython/pull/128012 |
| og:image:alt | Methods (functions defined in class scope) are likely to be cleaned up by the GC anyway, so deferring nested methods will not prolong their lifetime.
Add a new code flag, CO_METHOD, that is set for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mpage |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b76b9cc70d30da50674184c9c66c56423fd0b93c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/128012#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128012 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F128012 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/128012 |
| Reload | https://github.com/python/cpython/pull/128012 |
| Reload | https://github.com/python/cpython/pull/128012 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
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 and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| mpage | https://github.com/mpage |
| python:main | https://github.com/python/cpython/tree/main |
| mpage:gh-127274-method-flag | https://github.com/mpage/cpython/tree/gh-127274-method-flag |
| Conversation | https://github.com/python/cpython/pull/128012 |
| Commits5 (5) | https://github.com/python/cpython/pull/128012/commits |
| Checks | https://github.com/python/cpython/pull/128012/checks |
| Files changed | https://github.com/python/cpython/pull/128012/files |
| gh-127274: Defer nested methods | https://github.com/python/cpython/pull/128012#top |
| mpage | https://github.com/mpage |
| python:main | https://github.com/python/cpython/tree/main |
| mpage:gh-127274-method-flag | https://github.com/mpage/cpython/tree/gh-127274-method-flag |
|
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#issue-2743706963 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| Defer functions defined in nested classes in free-threaded builds #127274 | https://github.com/python/cpython/issues/127274 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
|
| https://github.com/mpage |
| Defer nested methods | https://github.com/python/cpython/pull/128012/commits/75b07cee20bb80d672d5b97efe954fbd03db95b1 |
| 75b07ce | https://github.com/python/cpython/pull/128012/commits/75b07cee20bb80d672d5b97efe954fbd03db95b1 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Dec 17, 2024
| https://github.com/python/cpython/pull/128012#ref-issue-2692565396 |
|
Defer functions defined in nested classes in free-threaded builds
#127274
| https://github.com/python/cpython/issues/127274 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#event-15678356724 |
| https://github.com/corona10 |
| corona10 | https://github.com/corona10 |
|
Dec 17, 2024
| https://github.com/python/cpython/pull/128012#ref-pullrequest-2725075888 |
|
gh-115999: Enable BINARY_SUBSCR_GETITEM for free-threaded build
#127737
| https://github.com/python/cpython/pull/127737 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| December 17, 2024 06:22 | https://github.com/python/cpython/pull/128012#event-15680602503 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| JelleZijlstra | https://github.com/JelleZijlstra |
| carljm | https://github.com/carljm |
| iritkatriel | https://github.com/iritkatriel |
| markshannon | https://github.com/markshannon |
| code owners | https://github.com/python/cpython/blob/cfeaa992ba9bad9be2687afcafd85156703d74e8/.github/CODEOWNERS#L48 |
| December 17, 2024 06:22 | https://github.com/python/cpython/pull/128012#event-15680602585 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#event-15680602922 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| colesbury | https://github.com/colesbury |
| December 17, 2024 06:22 | https://github.com/python/cpython/pull/128012#event-15680604036 |
| https://github.com/colesbury |
| colesbury | https://github.com/colesbury |
|
Dec 17, 2024
| https://github.com/python/cpython/pull/128012#pullrequestreview-2509503285 |
|
View reviewed changes
| https://github.com/python/cpython/pull/128012/files/75b07cee20bb80d672d5b97efe954fbd03db95b1 |
| colesbury | https://github.com/colesbury |
| https://github.com/python/cpython/pull/128012#pullrequestreview-2509503285 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| Include/cpython/code.h | https://github.com/python/cpython/pull/128012/files/75b07cee20bb80d672d5b97efe954fbd03db95b1#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#event-15689566993 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#issuecomment-2549117189 |
| https://docs.python.org/3.14/library/inspect.html#inspect.CO_HAS_DOCSTRING | https://docs.python.org/3.14/library/inspect.html#inspect.CO_HAS_DOCSTRING |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| Dec 17, 2024 | https://github.com/python/cpython/pull/128012#issuecomment-2549326284 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| mpage | https://github.com/mpage |
| December 17, 2024 11:53 | https://github.com/python/cpython/pull/128012#commits-pushed-2904965 |
|
| https://github.com/mpage |
| Document CO_METHOD | https://github.com/python/cpython/pull/128012/commits/2904965ec52c0facb0847216e5c3bc3f2e18a570 |
| 2904965 | https://github.com/python/cpython/pull/128012/commits/2904965ec52c0facb0847216e5c3bc3f2e18a570 |
|
| https://github.com/mpage |
| Add NEWS entry | https://github.com/python/cpython/pull/128012/commits/00e8a9dc9a9938577accb90a7d3799ad2e6b1546 |
| 00e8a9d | https://github.com/python/cpython/pull/128012/commits/00e8a9dc9a9938577accb90a7d3799ad2e6b1546 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Dec 18, 2024 | https://github.com/python/cpython/pull/128012#event-15695310398 |
|
| https://github.com/mpage |
| Merge branch 'main' into | https://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684 |
| pythongh-127274 | https://github.com/python/cpython/issues/127274 |
| -method-flag | https://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684 |
| 4de9ebd | https://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Dec 18, 2024 | https://github.com/python/cpython/pull/128012#issuecomment-2550107203 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| Dec 18, 2024 | https://github.com/python/cpython/pull/128012#issuecomment-2550126545 |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| Dec 18, 2024 | https://github.com/python/cpython/pull/128012#issuecomment-2550127247 |
| @JelleZijlstra | https://github.com/JelleZijlstra |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
|
Dec 18, 2024
| https://github.com/python/cpython/pull/128012#pullrequestreview-2510687144 |
|
View reviewed changes
| https://github.com/python/cpython/pull/128012/files/136729d42cec697da762e012bb15d67545ff28c3 |
| JelleZijlstra | https://github.com/JelleZijlstra |
| https://github.com/python/cpython/pull/128012#pullrequestreview-2510687144 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
|
| https://github.com/mpage |
| Merge branch 'main' into | https://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3 |
| pythongh-127274 | https://github.com/python/cpython/issues/127274 |
| -method-flag | https://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3 |
| 136729d | https://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| 255762c | https://github.com/python/cpython/commit/255762c09fe518757bb3e8ce1bb6e5d8eec9f466 |
| Dec 19, 2024 | https://github.com/python/cpython/pull/128012#event-15725248648 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Dec 19, 2024 | https://github.com/python/cpython/pull/128012#event-15725249120 |
| https://github.com/mpage |
| mpage | https://github.com/mpage |
| December 19, 2024 21:03 | https://github.com/python/cpython/pull/128012#event-15725249816 |
| https://github.com/corona10 |
| corona10 | https://github.com/corona10 |
|
Dec 22, 2024
| https://github.com/python/cpython/pull/128012#ref-pullrequest-2754448610 |
|
gh-115999: Update test_opcache to test with nested method
#128166
| https://github.com/python/cpython/pull/128166 |
| srinivasreddy | https://github.com/srinivasreddy |
|
Dec 23, 2024
| https://github.com/python/cpython/pull/128012#ref-commit-08c1491 |
|
| https://github.com/mpage |
|
| https://github.com/srinivasreddy |
| pythongh-127274 | https://github.com/python/cpython/issues/127274 |
| : Defer nested methods ( | https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee |
| python#128012 | https://github.com/python/cpython/pull/128012 |
| ) | https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee |
| 08c1491 | https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee |
| srinivasreddy | https://github.com/srinivasreddy |
|
Jan 8, 2025
| https://github.com/python/cpython/pull/128012#ref-commit-b76f200 |
|
| https://github.com/mpage |
|
| https://github.com/srinivasreddy |
| pythongh-127274 | https://github.com/python/cpython/issues/127274 |
| : Defer nested methods ( | https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375 |
| python#128012 | https://github.com/python/cpython/pull/128012 |
| ) | https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375 |
| b76f200 | https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128012 |
|
| https://github.com/colesbury |
|
colesbury
| https://github.com/colesbury |
|
| https://github.com/python/cpython/pull/128012/files/75b07cee20bb80d672d5b97efe954fbd03db95b1 |
|
| https://github.com/JelleZijlstra |
|
JelleZijlstra
| https://github.com/JelleZijlstra |
|
| https://github.com/python/cpython/pull/128012/files/136729d42cec697da762e012bb15d67545ff28c3 |
|
| https://github.com/carljm |
|
carljm
| https://github.com/carljm |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
|
| https://github.com/iritkatriel |
|
iritkatriel
| https://github.com/iritkatriel |
| Please reload this page | https://github.com/python/cpython/pull/128012 |
|
| https://github.com/mpage |
|
| https://github.com/JelleZijlstra |
|
| https://github.com/colesbury |
|
| 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 |