René's URL Explorer Experiment


Title: gh-143732: Add specialization for TO_BOOL by eendebakpt · Pull Request #148113 · python/cpython · GitHub

Open Graph Title: gh-143732: Add specialization for TO_BOOL by eendebakpt · Pull Request #148113 · python/cpython

X Title: gh-143732: Add specialization for TO_BOOL by eendebakpt · Pull Request #148113 · python/cpython

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

Open Graph Description: We add TO_BOOL_GENERIC as suggested in #143732 (comment). This adds type information for several builtin classes. We also add _TO_BOOL_DICT (tier 2). In the jit conversion of a dict to bool is abou...

X Description: We add TO_BOOL_GENERIC as suggested in #143732 (comment). This adds type information for several builtin classes. We also add _TO_BOOL_DICT (tier 2). In the jit conversion of a dict to bool is abou...

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

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:0f1dac2c-5141-112b-8909-02dd58de0ee7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C14:315BD7:584B5:7616E:6A525167
html-safe-nonce9d5a205a21fed191dfc97b9b7802493c1c4043035937aa75df4c4dff6923ec58
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzE0OjMxNUJENzo1ODRCNTo3NjE2RTo2QTUyNTE2NyIsInZpc2l0b3JfaWQiOiIzNzU3NDYwOTIzODk3NTAwMDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac685e2ba005723d2efacfb2ba40cbacafef7175c8de47c286cda5e1a706da439e
hovercard-subject-tagpull_request:3489536686
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/148113/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b680733069b6e82122c85b8d02051e976589fdb1482a8774186ab98cddcf0fa6/python/cpython/pull/148113
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b680733069b6e82122c85b8d02051e976589fdb1482a8774186ab98cddcf0fa6/python/cpython/pull/148113
og:image:altWe add TO_BOOL_GENERIC as suggested in #143732 (comment). This adds type information for several builtin classes. We also add _TO_BOOL_DICT (tier 2). In the jit conversion of a dict to bool is abou...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeendebakpt
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/148113#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148113
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%2F148113
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/148113
Reloadhttps://github.com/python/cpython/pull/148113
Reloadhttps://github.com/python/cpython/pull/148113
Please reload this pagehttps://github.com/python/cpython/pull/148113
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/148113
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:to_bool_generichttps://github.com/eendebakpt/cpython/tree/to_bool_generic
Conversationhttps://github.com/python/cpython/pull/148113
Commits9 (9)https://github.com/python/cpython/pull/148113/commits
Checkshttps://github.com/python/cpython/pull/148113/checks
Files changedhttps://github.com/python/cpython/pull/148113/files
gh-143732: Add specialization for TO_BOOLhttps://github.com/python/cpython/pull/148113#top
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:to_bool_generichttps://github.com/eendebakpt/cpython/tree/to_bool_generic
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 4, 2026https://github.com/python/cpython/pull/148113#issue-4205879271
Please reload this pagehttps://github.com/python/cpython/pull/148113
#143732 (comment)https://github.com/python/cpython/issues/143732#issuecomment-3744027334
Broader specialization in the Specializing Adaptive Interpreter for better JIT performance #143732https://github.com/python/cpython/issues/143732
Please reload this pagehttps://github.com/python/cpython/pull/148113
eendebakpthttps://github.com/eendebakpt
March 25, 2026 22:53https://github.com/python/cpython/pull/148113#commits-pushed-395bdfc
https://github.com/eendebakpt
https://github.com/claude
Add TO_BOOL_GENERIC specialization and _TO_BOOL_DICT JIT optimizationhttps://github.com/python/cpython/pull/148113/commits/395bdfc9aa2d2c62eaea7eafbce5dacf5ac34ea5
395bdfchttps://github.com/python/cpython/pull/148113/commits/395bdfc9aa2d2c62eaea7eafbce5dacf5ac34ea5
https://github.com/eendebakpt
Merge branch 'main' into to_bool_generichttps://github.com/python/cpython/pull/148113/commits/8e62e9feefce5eddbc7f18c489fc0f9d627d9a77
8e62e9fhttps://github.com/python/cpython/pull/148113/commits/8e62e9feefce5eddbc7f18c489fc0f9d627d9a77
https://github.com/eendebakpt
refactorhttps://github.com/python/cpython/pull/148113/commits/d52937f8e039616353daf85fd41c18ae9f470dda
d52937fhttps://github.com/python/cpython/pull/148113/commits/d52937f8e039616353daf85fd41c18ae9f470dda
https://github.com/eendebakpt
refactorhttps://github.com/python/cpython/pull/148113/commits/abe868fd3eebd9d13fd030a26f9aec879cb3c302
abe868fhttps://github.com/python/cpython/pull/148113/commits/abe868fd3eebd9d13fd030a26f9aec879cb3c302
https://github.com/eendebakpt
refactorhttps://github.com/python/cpython/pull/148113/commits/c89608724746f56548c84a5855a435ec0ada4f67
c896087https://github.com/python/cpython/pull/148113/commits/c89608724746f56548c84a5855a435ec0ada4f67
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Fidget-Spinnerhttps://github.com/Fidget-Spinner
markshannonhttps://github.com/markshannon
savannahostrowskihttps://github.com/savannahostrowski
tomasr8https://github.com/tomasr8
code ownershttps://github.com/python/cpython/blob/4ff8b07a3d907c5a755a862a86496ed6c6fb2f3d/.github/CODEOWNERS#L308
April 4, 2026 21:51https://github.com/python/cpython/pull/148113#event-24200686427
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 4, 2026https://github.com/python/cpython/pull/148113#event-24200686881
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 4, 2026 https://github.com/python/cpython/pull/148113#ref-issue-3804663238
Broader specialization in the Specializing Adaptive Interpreter for better JIT performance #143732 https://github.com/python/cpython/issues/143732
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 5, 2026 https://github.com/python/cpython/pull/148113#pullrequestreview-4059760208
View reviewed changes https://github.com/python/cpython/pull/148113/files/c89608724746f56548c84a5855a435ec0ada4f67
Lib/test/test_opcache.pyhttps://github.com/python/cpython/pull/148113/files/c89608724746f56548c84a5855a435ec0ada4f67#diff-dd88a1417bab2a9400460e629e7e43a3f6e798e47b44fe3541f3f804f12430d1
eendebakpthttps://github.com/eendebakpt
Apr 5, 2026https://github.com/python/cpython/pull/148113#discussion_r3037244699
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 5, 2026 https://github.com/python/cpython/pull/148113#pullrequestreview-4059762871
View reviewed changes https://github.com/python/cpython/pull/148113/files/c89608724746f56548c84a5855a435ec0ada4f67
Python/optimizer_bytecodes.chttps://github.com/python/cpython/pull/148113/files/c89608724746f56548c84a5855a435ec0ada4f67#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64
eendebakpthttps://github.com/eendebakpt
Apr 5, 2026https://github.com/python/cpython/pull/148113#discussion_r3037248629
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 5, 2026https://github.com/python/cpython/pull/148113#event-24209234433
eendebakpthttps://github.com/eendebakpt
April 5, 2026 21:20https://github.com/python/cpython/pull/148113#commits-pushed-f616e12
https://github.com/eendebakpt
Merge branch 'main' into to_bool_generichttps://github.com/python/cpython/pull/148113/commits/f616e12b552948724c347faab2e08417dcf033e3
f616e12https://github.com/python/cpython/pull/148113/commits/f616e12b552948724c347faab2e08417dcf033e3
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/148113/commits/0d00d54e268b764bf666d38dda093f5f3307efd2
0d00d54https://github.com/python/cpython/pull/148113/commits/0d00d54e268b764bf666d38dda093f5f3307efd2
https://github.com/eendebakpt
formathttps://github.com/python/cpython/pull/148113/commits/2c645eefb6f39742c0880035b14d24177b7023be
2c645eehttps://github.com/python/cpython/pull/148113/commits/2c645eefb6f39742c0880035b14d24177b7023be
https://github.com/eendebakpt
Merge branch 'main' into to_bool_generichttps://github.com/python/cpython/pull/148113/commits/39f9e66498fca08f1cf41fcc4de57f36739806e3
39f9e66https://github.com/python/cpython/pull/148113/commits/39f9e66498fca08f1cf41fcc4de57f36739806e3
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Apr 7, 2026https://github.com/python/cpython/pull/148113#issuecomment-4198054705
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 8, 2026 https://github.com/python/cpython/pull/148113#ref-pullrequest-4227826043
gh-143732: Add tier2 specialization for TO_BOOL #148271 https://github.com/python/cpython/pull/148271
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 8, 2026https://github.com/python/cpython/pull/148113#issuecomment-4209943818
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Apr 9, 2026https://github.com/python/cpython/pull/148113#issuecomment-4212838470
#148285https://github.com/python/cpython/issues/148285
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Apr 30, 2026https://github.com/python/cpython/pull/148113#issuecomment-4351639564
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 30, 2026https://github.com/python/cpython/pull/148113#issuecomment-4356280850
@markshannonhttps://github.com/markshannon
#148271https://github.com/python/cpython/pull/148271
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Apr 30, 2026https://github.com/python/cpython/pull/148113#event-25053548150
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%2F148113
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/tomasr8
tomasr8 https://github.com/tomasr8
https://github.com/Fidget-Spinner
Fidget-Spinner https://github.com/Fidget-Spinner
https://github.com/savannahostrowski
savannahostrowski https://github.com/savannahostrowski
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/148113
https://github.com/eendebakpt
https://github.com/markshannon
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.