René's URL Explorer Experiment


Title: gh-127274: Defer nested methods by mpage · Pull Request #128012 · python/cpython · GitHub

Open Graph Title: gh-127274: Defer nested methods by mpage · Pull Request #128012 · python/cpython

X Title: gh-127274: Defer nested methods by mpage · Pull Request #128012 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/python/cpython/pull/128012

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:be0f0a2c-866c-0c98-c13c-b9873b6f4312
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3A2:3020D:12A9E6E:1B24D00:6A5614D3
html-safe-nonce36dec640a5a85c97c09c9e3b9b8031f3bf5e7f96a4c3c5158f8bc5fac9244f04
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0EyOjMwMjBEOjEyQTlFNkU6MUIyNEQwMDo2QTU2MTREMyIsInZpc2l0b3JfaWQiOiIxNDI3ODgyMzk2Mzk3OTk5MzE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccd7a0c9dc6282872b20514765e548c4cb81ec488360f02edb7d05b1aa94f183a
hovercard-subject-tagpull_request:2238552918
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/128012/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f0f6ae7ccd113ee8a372a0967bd22b0c4d332b7d869f3f821818953653231c06/python/cpython/pull/128012
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f0f6ae7ccd113ee8a372a0967bd22b0c4d332b7d869f3f821818953653231c06/python/cpython/pull/128012
og:image:altMethods (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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamempage
hostnamegithub.com
expected-hostnamegithub.com
Nonef4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb76b9cc70d30da50674184c9c66c56423fd0b93c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/python/cpython/pull/128012
Reloadhttps://github.com/python/cpython/pull/128012
Reloadhttps://github.com/python/cpython/pull/128012
Please reload this pagehttps://github.com/python/cpython/pull/128012
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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
mpagehttps://github.com/mpage
python:mainhttps://github.com/python/cpython/tree/main
mpage:gh-127274-method-flaghttps://github.com/mpage/cpython/tree/gh-127274-method-flag
Conversationhttps://github.com/python/cpython/pull/128012
Commits5 (5)https://github.com/python/cpython/pull/128012/commits
Checkshttps://github.com/python/cpython/pull/128012/checks
Files changedhttps://github.com/python/cpython/pull/128012/files
gh-127274: Defer nested methodshttps://github.com/python/cpython/pull/128012#top
mpagehttps://github.com/mpage
python:mainhttps://github.com/python/cpython/tree/main
mpage:gh-127274-method-flaghttps://github.com/mpage/cpython/tree/gh-127274-method-flag
https://github.com/mpage
mpagehttps://github.com/mpage
Dec 17, 2024https://github.com/python/cpython/pull/128012#issue-2743706963
Please reload this pagehttps://github.com/python/cpython/pull/128012
Defer functions defined in nested classes in free-threaded builds #127274https://github.com/python/cpython/issues/127274
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
Defer nested methodshttps://github.com/python/cpython/pull/128012/commits/75b07cee20bb80d672d5b97efe954fbd03db95b1
75b07cehttps://github.com/python/cpython/pull/128012/commits/75b07cee20bb80d672d5b97efe954fbd03db95b1
https://github.com/apps/bedevere-app
bedevere-apphttps://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
mpagehttps://github.com/mpage
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Dec 17, 2024https://github.com/python/cpython/pull/128012#event-15678356724
https://github.com/corona10
corona10https://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
mpagehttps://github.com/mpage
December 17, 2024 06:22https://github.com/python/cpython/pull/128012#event-15680602503
https://github.com/mpage
mpagehttps://github.com/mpage
JelleZijlstrahttps://github.com/JelleZijlstra
carljmhttps://github.com/carljm
iritkatrielhttps://github.com/iritkatriel
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/cfeaa992ba9bad9be2687afcafd85156703d74e8/.github/CODEOWNERS#L48
December 17, 2024 06:22https://github.com/python/cpython/pull/128012#event-15680602585
https://github.com/apps/bedevere-app
bedevere-apphttps://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, 2024https://github.com/python/cpython/pull/128012#event-15680602922
https://github.com/mpage
mpagehttps://github.com/mpage
colesburyhttps://github.com/colesbury
December 17, 2024 06:22https://github.com/python/cpython/pull/128012#event-15680604036
https://github.com/colesbury
colesburyhttps://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
colesburyhttps://github.com/colesbury
https://github.com/python/cpython/pull/128012#pullrequestreview-2509503285
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/128012
Include/cpython/code.hhttps://github.com/python/cpython/pull/128012/files/75b07cee20bb80d672d5b97efe954fbd03db95b1#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/apps/bedevere-app
bedevere-apphttps://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, 2024https://github.com/python/cpython/pull/128012#event-15689566993
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Dec 17, 2024https://github.com/python/cpython/pull/128012#issuecomment-2549117189
https://docs.python.org/3.14/library/inspect.html#inspect.CO_HAS_DOCSTRINGhttps://docs.python.org/3.14/library/inspect.html#inspect.CO_HAS_DOCSTRING
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
mpagehttps://github.com/mpage
Dec 17, 2024https://github.com/python/cpython/pull/128012#issuecomment-2549326284
Please reload this pagehttps://github.com/python/cpython/pull/128012
mpagehttps://github.com/mpage
December 17, 2024 11:53https://github.com/python/cpython/pull/128012#commits-pushed-2904965
https://github.com/mpage
Document CO_METHODhttps://github.com/python/cpython/pull/128012/commits/2904965ec52c0facb0847216e5c3bc3f2e18a570
2904965https://github.com/python/cpython/pull/128012/commits/2904965ec52c0facb0847216e5c3bc3f2e18a570
https://github.com/mpage
Add NEWS entryhttps://github.com/python/cpython/pull/128012/commits/00e8a9dc9a9938577accb90a7d3799ad2e6b1546
00e8a9dhttps://github.com/python/cpython/pull/128012/commits/00e8a9dc9a9938577accb90a7d3799ad2e6b1546
https://github.com/mpage
mpagehttps://github.com/mpage
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Dec 18, 2024https://github.com/python/cpython/pull/128012#event-15695310398
https://github.com/mpage
Merge branch 'main' intohttps://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684
pythongh-127274https://github.com/python/cpython/issues/127274
-method-flaghttps://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684
4de9ebdhttps://github.com/python/cpython/pull/128012/commits/4de9ebda552093a0db4afd48c65de40fab138684
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Dec 18, 2024https://github.com/python/cpython/pull/128012#issuecomment-2550107203
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
mpagehttps://github.com/mpage
Dec 18, 2024https://github.com/python/cpython/pull/128012#issuecomment-2550126545
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
mpagehttps://github.com/mpage
Dec 18, 2024https://github.com/python/cpython/pull/128012#issuecomment-2550127247
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/JelleZijlstra
JelleZijlstrahttps://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
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/128012#pullrequestreview-2510687144
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
Merge branch 'main' intohttps://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3
pythongh-127274https://github.com/python/cpython/issues/127274
-method-flaghttps://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3
136729dhttps://github.com/python/cpython/pull/128012/commits/136729d42cec697da762e012bb15d67545ff28c3
https://github.com/mpage
mpagehttps://github.com/mpage
255762chttps://github.com/python/cpython/commit/255762c09fe518757bb3e8ce1bb6e5d8eec9f466
Dec 19, 2024https://github.com/python/cpython/pull/128012#event-15725248648
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Dec 19, 2024https://github.com/python/cpython/pull/128012#event-15725249120
https://github.com/mpage
mpagehttps://github.com/mpage
December 19, 2024 21:03https://github.com/python/cpython/pull/128012#event-15725249816
https://github.com/corona10
corona10https://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
srinivasreddyhttps://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-127274https://github.com/python/cpython/issues/127274
: Defer nested methods (https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee
python#128012https://github.com/python/cpython/pull/128012
)https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee
08c1491https://github.com/srinivasreddy/cpython/commit/08c1491a0a354d609d4336431b6d3cfc90b959ee
srinivasreddyhttps://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-127274https://github.com/python/cpython/issues/127274
: Defer nested methods (https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375
python#128012https://github.com/python/cpython/pull/128012
)https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375
b76f200https://github.com/srinivasreddy/cpython/commit/b76f200df76235b17276912e018d1ce268908375
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/python/cpython/pull/128012
https://github.com/mpage
https://github.com/JelleZijlstra
https://github.com/colesbury
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.