René's URL Explorer Experiment


Title: gh-101409: Improve generated clinic code for self type checks by erlend-aasland · Pull Request #101411 · python/cpython · GitHub

Open Graph Title: gh-101409: Improve generated clinic code for self type checks by erlend-aasland · Pull Request #101411 · python/cpython

X Title: gh-101409: Improve generated clinic code for self type checks by erlend-aasland · Pull Request #101411 · python/cpython

Description: Store the self type pointer in a local variable. Issue: gh-101409

Open Graph Description: Store the self type pointer in a local variable. Issue: gh-101409

X Description: Store the self type pointer in a local variable. Issue: gh-101409

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ccf77ef5-e75a-e269-909b-e977f7ba1a0d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0E0:A74F2:8FA931:BFD83A:69697BBD
html-safe-nonce7dab4b026030c5377e8f1d7ef0db671b90b85ee4a95c8110eaa834fa6e6feb29
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUwOkE3NEYyOjhGQTkzMTpCRkQ4M0E6Njk2OTdCQkQiLCJ2aXNpdG9yX2lkIjoiOTA1NjA3MDkyNDg2NjUxNzk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5d821119fda228547de9fae51ea91e98e5e6557493a4e26c03b6997dc40689da
hovercard-subject-tagpull_request:1220795589
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/101411/files
twitter:imagehttps://avatars.githubusercontent.com/u/13780613?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13780613?s=400&v=4
og:image:altStore the self type pointer in a local variable. Issue: gh-101409
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/101411/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101411%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F101411%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
Reloadhttps://github.com/python/cpython/pull/101411/files
Reloadhttps://github.com/python/cpython/pull/101411/files
Reloadhttps://github.com/python/cpython/pull/101411/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/101411/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 pagehttps://github.com/python/cpython/pull/101411/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
erlend-aaslandhttps://github.com/erlend-aasland
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:clinic/self-type-checkhttps://github.com/erlend-aasland/cpython/tree/clinic/self-type-check
Conversation 8 https://github.com/python/cpython/pull/101411
Commits 3 https://github.com/python/cpython/pull/101411/commits
Checks 0 https://github.com/python/cpython/pull/101411/checks
Files changed https://github.com/python/cpython/pull/101411/files
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
gh-101409: Improve generated clinic code for self type checks https://github.com/python/cpython/pull/101411/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/101411/files
056abc4 gh-101409: Improve generated clinic code for self type checks erlend-aasland Jan 29, 2023 https://github.com/python/cpython/pull/101411/commits/056abc4d54832b06b8f5ca614d5d25d17ff6e0a0
22cde3d Sync with main erlend-aasland Jan 30, 2023 https://github.com/python/cpython/pull/101411/commits/22cde3d3d8b6358e7a69d701da84e9fe2a15ec02
1c6e01e Address review: self_tp => base_tp erlend-aasland Jan 30, 2023 https://github.com/python/cpython/pull/101411/commits/1c6e01e090366cb0ffe56bf3a37348959f65172c
Clear filters https://github.com/python/cpython/pull/101411/files
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
bufferedio.c.h https://github.com/python/cpython/pull/101411/files#diff-9b822806a1ab112f6eb4d2f83e35fbbfe20779015bfc9a55aa51c748635ce5a2
cursor.c.h https://github.com/python/cpython/pull/101411/files#diff-f1180597c9b61f04f16c700d27bb11e5ad068181ff5b2d4646dcbc56ec1b13ee
row.c.h https://github.com/python/cpython/pull/101411/files#diff-0493ee54b081e94cd149a48f05ddd7f59721865bd114b5412c33c34bfbe249f3
_collectionsmodule.c.h https://github.com/python/cpython/pull/101411/files#diff-b3663bc8acb4b6949af7bef96b1c56a2b6b5e28937c3932750bff09d7eead4de
_queuemodule.c.h https://github.com/python/cpython/pull/101411/files#diff-b37cb4929ccbcfc72c89f4285cce646cda11c91e60cfa8b5271dbd06b1763941
_ssl.c.h https://github.com/python/cpython/pull/101411/files#diff-f1e8bf0ef81915ccc340d8ed854ccc47f0a7f88fbadb261c6b4b4b90dee3b57a
itertoolsmodule.c.h https://github.com/python/cpython/pull/101411/files#diff-1628d1649ee211a1608915194dc2bdb99f3c8db7e7e652445febe496a5b52184
selectmodule.c.h https://github.com/python/cpython/pull/101411/files#diff-66b4c289ca110f8698593abb04caf861be92fba29670242725247446c7421139
classobject.c.h https://github.com/python/cpython/pull/101411/files#diff-14b46459a0d2890a43e2c990f4a5322b807c9127968b84582b5506156a8a4082
codeobject.c.h https://github.com/python/cpython/pull/101411/files#diff-e625a87deb129f82e7011cd3c5d9338f61f34089a5e61acf570e1c8b7f30dafd
enumobject.c.h https://github.com/python/cpython/pull/101411/files#diff-882710ee6584011e9779f6b4f928fe1a3ff55d5feee4157253f63802cdf69394
floatobject.c.h https://github.com/python/cpython/pull/101411/files#diff-4bb35ae8253050f920a182c2a0d52f764b15c8a82a92782b43e059da55189b2d
listobject.c.h https://github.com/python/cpython/pull/101411/files#diff-65a4bbba77febb1cb5d9019ef59905ef770d8b5d65353193a4703d8e73971e7e
tupleobject.c.h https://github.com/python/cpython/pull/101411/files#diff-48a832903870607a65b86ba764455ec8bd6b9dcc22500ed54a1082a7c457a1e4
clinic.py https://github.com/python/cpython/pull/101411/files#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Modules/_io/clinic/bufferedio.c.hhttps://github.com/python/cpython/pull/101411/files#diff-9b822806a1ab112f6eb4d2f83e35fbbfe20779015bfc9a55aa51c748635ce5a2
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/_io/clinic/bufferedio.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/_sqlite/clinic/cursor.c.hhttps://github.com/python/cpython/pull/101411/files#diff-f1180597c9b61f04f16c700d27bb11e5ad068181ff5b2d4646dcbc56ec1b13ee
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/_sqlite/clinic/cursor.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/_sqlite/clinic/row.c.hhttps://github.com/python/cpython/pull/101411/files#diff-0493ee54b081e94cd149a48f05ddd7f59721865bd114b5412c33c34bfbe249f3
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/_sqlite/clinic/row.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/clinic/_collectionsmodule.c.hhttps://github.com/python/cpython/pull/101411/files#diff-b3663bc8acb4b6949af7bef96b1c56a2b6b5e28937c3932750bff09d7eead4de
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/clinic/_collectionsmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/clinic/_queuemodule.c.hhttps://github.com/python/cpython/pull/101411/files#diff-b37cb4929ccbcfc72c89f4285cce646cda11c91e60cfa8b5271dbd06b1763941
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/clinic/_queuemodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/clinic/_ssl.c.hhttps://github.com/python/cpython/pull/101411/files#diff-f1e8bf0ef81915ccc340d8ed854ccc47f0a7f88fbadb261c6b4b4b90dee3b57a
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/clinic/_ssl.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/clinic/itertoolsmodule.c.hhttps://github.com/python/cpython/pull/101411/files#diff-1628d1649ee211a1608915194dc2bdb99f3c8db7e7e652445febe496a5b52184
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/clinic/itertoolsmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Modules/clinic/selectmodule.c.hhttps://github.com/python/cpython/pull/101411/files#diff-66b4c289ca110f8698593abb04caf861be92fba29670242725247446c7421139
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Modules/clinic/selectmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Objects/clinic/classobject.c.hhttps://github.com/python/cpython/pull/101411/files#diff-14b46459a0d2890a43e2c990f4a5322b807c9127968b84582b5506156a8a4082
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Objects/clinic/classobject.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Objects/clinic/codeobject.c.hhttps://github.com/python/cpython/pull/101411/files#diff-e625a87deb129f82e7011cd3c5d9338f61f34089a5e61acf570e1c8b7f30dafd
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Objects/clinic/codeobject.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Objects/clinic/enumobject.c.hhttps://github.com/python/cpython/pull/101411/files#diff-882710ee6584011e9779f6b4f928fe1a3ff55d5feee4157253f63802cdf69394
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Objects/clinic/enumobject.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Objects/clinic/floatobject.c.hhttps://github.com/python/cpython/pull/101411/files#diff-4bb35ae8253050f920a182c2a0d52f764b15c8a82a92782b43e059da55189b2d
View file https://github.com/erlend-aasland/cpython/blob/1c6e01e090366cb0ffe56bf3a37348959f65172c/Objects/clinic/floatobject.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
Please reload this pagehttps://github.com/python/cpython/pull/101411/files
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.