René's URL Explorer Experiment


Title: gh-134953: Make the True/False/None check more efficient by ambv · Pull Request #138931 · python/cpython · GitHub

Open Graph Title: gh-134953: Make the True/False/None check more efficient by ambv · Pull Request #138931 · python/cpython

X Title: gh-134953: Make the True/False/None check more efficient by ambv · Pull Request #138931 · python/cpython

Description: Issue: Add more granularity to _pyrepl syntax theming for "keywords" #134953

Open Graph Description: Issue: Add more granularity to _pyrepl syntax theming for "keywords" #134953

X Description: Issue: Add more granularity to _pyrepl syntax theming for "keywords" #134953

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

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:986fe444-24a2-105b-ba55-802987f4da66
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA35C:E8423:20C2004:2B59BF8:696B0888
html-safe-nonce24878fe661beed33c5d6b2eabedf23b4fcf3a4035d673be3bfad96c091915d7c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzVDOkU4NDIzOjIwQzIwMDQ6MkI1OUJGODo2OTZCMDg4OCIsInZpc2l0b3JfaWQiOiIxNzg1OTU5NTE0OTc2NzQ5NzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2570c4051975501e9847a89abed46e56907c84d323ff17360dfc3ffa82907101
hovercard-subject-tagpull_request:2829663361
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/138931/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/672e4eb4bb87ab90c83db227083569bce132f51baf51c06ad081300f115c05a0/python/cpython/pull/138931
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/672e4eb4bb87ab90c83db227083569bce132f51baf51c06ad081300f115c05a0/python/cpython/pull/138931
og:image:altIssue: Add more granularity to _pyrepl syntax theming for "keywords" #134953
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameambv
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/138931#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138931
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%2F138931
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/138931
Reloadhttps://github.com/python/cpython/pull/138931
Reloadhttps://github.com/python/cpython/pull/138931
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/138931
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/138931
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
Jump to bottomhttps://github.com/python/cpython/pull/138931#issue-comment-box
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
ambv:gh-134953-followuphttps://github.com/ambv/cpython/tree/gh-134953-followup
gh-134953: Make the True/False/None check more efficient https://github.com/python/cpython/pull/138931#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
ambv:gh-134953-followuphttps://github.com/ambv/cpython/tree/gh-134953-followup
Conversation 9 https://github.com/python/cpython/pull/138931
Commits 1 https://github.com/python/cpython/pull/138931/commits
Checks 55 https://github.com/python/cpython/pull/138931/checks
Files changed https://github.com/python/cpython/pull/138931/files
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ambv
ambvhttps://github.com/ambv
Sep 15, 2025https://github.com/python/cpython/pull/138931#issue-3418407490
Please reload this pagehttps://github.com/python/cpython/pull/138931
Add more granularity to _pyrepl syntax theming for "keywords" #134953https://github.com/python/cpython/issues/134953
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.com/ambv
ambvhttps://github.com/ambv
lysnikolaouhttps://github.com/lysnikolaou
pablogsalhttps://github.com/pablogsal
code ownershttps://github.com/python/cpython/blob/5c4bb9b7f6a779351afcdd76f390c572b3c1dc06/.github/CODEOWNERS#L529
September 15, 2025 15:12https://github.com/python/cpython/pull/138931#event-19704259815
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
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19704261401
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 15, 2025 https://github.com/python/cpython/pull/138931#ref-issue-3104424720
Add more granularity to _pyrepl syntax theming for "keywords" #134953 https://github.com/python/cpython/issues/134953
https://github.com/ambv
pythongh-134953https://github.com/python/cpython/issues/134953
: Make the True/False/None check more efficienthttps://github.com/python/cpython/pull/138931/commits/8e85d33679ae8cf849dd53367d6be7391172cd6b
8e85d33https://github.com/python/cpython/pull/138931/commits/8e85d33679ae8cf849dd53367d6be7391172cd6b
https://github.com/ambv
ambvhttps://github.com/ambv
force-pushedhttps://github.com/python/cpython/compare/04f98d40d9a9b5a6f1645ced4afa0911afeefd77..8e85d33679ae8cf849dd53367d6be7391172cd6b
04f98d4https://github.com/python/cpython/commit/04f98d40d9a9b5a6f1645ced4afa0911afeefd77
8e85d33https://github.com/python/cpython/commit/8e85d33679ae8cf849dd53367d6be7391172cd6b
Compare https://github.com/python/cpython/compare/04f98d40d9a9b5a6f1645ced4afa0911afeefd77..8e85d33679ae8cf849dd53367d6be7391172cd6b
September 15, 2025 15:13https://github.com/python/cpython/pull/138931#event-19704280716
https://github.com/ambv
ambvhttps://github.com/ambv
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19704338339
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Sep 15, 2025 https://github.com/python/cpython/pull/138931#pullrequestreview-3225195445
View reviewed changes https://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b
StanFromIrelandhttps://github.com/StanFromIreland
https://github.com/python/cpython/pull/138931#pullrequestreview-3225195445
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Sep 15, 2025 https://github.com/python/cpython/pull/138931#pullrequestreview-3225274630
View reviewed changes https://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b
Lib/_pyrepl/utils.pyhttps://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b#diff-4f8422583c43023de2bd7243efa0263f3ba95c028938501ff8ffb51f67941686
eendebakpthttps://github.com/eendebakpt
Sep 15, 2025https://github.com/python/cpython/pull/138931#discussion_r2349416051
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/138931
pablogsalhttps://github.com/pablogsal
Sep 15, 2025https://github.com/python/cpython/pull/138931#discussion_r2349468397
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/138931
auscompgeekhttps://github.com/auscompgeek
Sep 16, 2025https://github.com/python/cpython/pull/138931#discussion_r2350430211
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/138931
eendebakpthttps://github.com/eendebakpt
Sep 16, 2025https://github.com/python/cpython/pull/138931#discussion_r2351198271
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@auscompgeekhttps://github.com/auscompgeek
Please reload this pagehttps://github.com/python/cpython/pull/138931
ambvhttps://github.com/ambv
Sep 16, 2025https://github.com/python/cpython/pull/138931#discussion_r2351689523
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@eendebakpthttps://github.com/eendebakpt
Please reload this pagehttps://github.com/python/cpython/pull/138931
eendebakpthttps://github.com/eendebakpt
Sep 16, 2025https://github.com/python/cpython/pull/138931#discussion_r2353525632
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#139003https://github.com/python/cpython/issues/139003
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.com/ambv
ambvhttps://github.com/ambv
811acc8https://github.com/python/cpython/commit/811acc85d5b001e0bef6ac2e6b499e7c4f149262
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19705852818
Please reload this pagehttps://github.com/python/cpython/pull/138931
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
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19705853756
https://github.com/ambv
ambvhttps://github.com/ambv
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19705861703
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 15, 2025https://github.com/python/cpython/pull/138931#issuecomment-3293001025
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/138931
miss-islingtonhttps://github.com/miss-islington
Sep 15, 2025 https://github.com/python/cpython/pull/138931#ref-commit-569db03
https://github.com/ambv
https://github.com/miss-islington
pythongh-134953https://github.com/python/cpython/issues/134953
: Make the True/False/None check more efficient (https://github.com/miss-islington/cpython/commit/569db03d46d1a1111948a194179cfbfc4639d923
pytho…https://github.com/python/cpython/pull/138931
569db03https://github.com/miss-islington/cpython/commit/569db03d46d1a1111948a194179cfbfc4639d923
…nGH-138931https://github.com/python/cpython/pull/138931
811acc8https://github.com/miss-islington/cpython/commit/811acc85d5b001e0bef6ac2e6b499e7c4f149262
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 15, 2025https://github.com/python/cpython/pull/138931#issuecomment-3293001916
GH-138939https://github.com/python/cpython/pull/138939
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Sep 15, 2025https://github.com/python/cpython/pull/138931#event-19705867572
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Sep 16, 2025 https://github.com/python/cpython/pull/138931#ref-pullrequest-3423610166
gh-139003: Use frozenset for module level attributes in _pyrepl.utils #139004 https://github.com/python/cpython/pull/139004
pablogsalhttps://github.com/pablogsal
Sep 29, 2025 https://github.com/python/cpython/pull/138931#ref-commit-4372a05
https://github.com/miss-islington
[3.14]https://github.com/python/cpython/commit/4372a05ab0b4ee2b3c5bf13e07508653f257e418
gh-134953https://github.com/python/cpython/issues/134953
: Make the True/False/None check more efficient (https://github.com/python/cpython/commit/4372a05ab0b4ee2b3c5bf13e07508653f257e418
GH-1…https://github.com/python/cpython/pull/138931
4372a05https://github.com/python/cpython/commit/4372a05ab0b4ee2b3c5bf13e07508653f257e418
…38931https://github.com/python/cpython/pull/138931
#138939https://github.com/python/cpython/pull/138939
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%2F138931
https://github.com/eendebakpt
eendebakpt https://github.com/eendebakpt
https://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/auscompgeek
auscompgeek https://github.com/auscompgeek
https://github.com/python/cpython/pull/138931/files/8e85d33679ae8cf849dd53367d6be7391172cd6b
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/138931
https://github.com/ambv
https://github.com/auscompgeek
https://github.com/eendebakpt
https://github.com/pablogsal
https://github.com/StanFromIreland
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.