René's URL Explorer Experiment


Title: Use `const fn` where possible by ShaharNaveh · Pull Request #5894 · RustPython/RustPython · GitHub

Open Graph Title: Use `const fn` where possible by ShaharNaveh · Pull Request #5894 · RustPython/RustPython

X Title: Use `const fn` where possible by ShaharNaveh · Pull Request #5894 · RustPython/RustPython

Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.

Open Graph Description: Summary by CodeRabbit Refactor Many internal methods and functions across the codebase have been updated to be evaluable at compile time, improving consistency and enabling more usage in constant...

X Description: Summary by CodeRabbit Refactor Many internal methods and functions across the codebase have been updated to be evaluable at compile time, improving consistency and enabling more usage in constant...

Opengraph URL: https://github.com/RustPython/RustPython/pull/5894

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:cc80b28c-4c91-7b5f-6052-b751bdbb3b0b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE872:74A48:344FF03:4B50D22:6A60F4D9
html-safe-nonced4facd9e83c7845902f23c697c3d4238fc5c8c736c4a027277ace8252a683ac5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODcyOjc0QTQ4OjM0NEZGMDM6NEI1MEQyMjo2QTYwRjREOSIsInZpc2l0b3JfaWQiOiIyOTU4MzY4NzY3OTg1MzgyNjE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac06ddd696200f160164edd9e8d37b63f937d15ef63e71aef580db3d2bd64f1c95
hovercard-subject-tagpull_request:2639786956
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/5894/commits
twitter:imagehttps://opengraph.githubassets.com/2366e419df9dcafa08765a26ccf97bc8291270417a694b586bea5a2853282fec/RustPython/RustPython/pull/5894
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2366e419df9dcafa08765a26ccf97bc8291270417a694b586bea5a2853282fec/RustPython/RustPython/pull/5894
og:image:altSummary by CodeRabbit Refactor Many internal methods and functions across the codebase have been updated to be evaluable at compile time, improving consistency and enabling more usage in constant...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameShaharNaveh
hostnamegithub.com
expected-hostnamegithub.com
None01a0f3379195d313175de239776b09dd4a079d5b2ea29dd9c37e85cd4cd5e990
turbo-cache-controlno-cache
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release00ca1a9089c8f2453e5d118d0554c8a26883d159
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/5894/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F5894%2Fcommits
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2FRustPython%2FRustPython%2Fpull%2F5894%2Fcommits
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%2Fcommits&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/5894/commits
Reloadhttps://github.com/RustPython/RustPython/pull/5894/commits
Reloadhttps://github.com/RustPython/RustPython/pull/5894/commits
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5894/commits
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 293 https://github.com/RustPython/RustPython/issues
Pull requests 102 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
ShaharNaveh:constifyhttps://github.com/ShaharNaveh/RustPython/tree/constify
Conversationhttps://github.com/RustPython/RustPython/pull/5894
Commits17 (17)https://github.com/RustPython/RustPython/pull/5894/commits
Checkshttps://github.com/RustPython/RustPython/pull/5894/checks
Files changedhttps://github.com/RustPython/RustPython/pull/5894/files
Use const fn where possiblehttps://github.com/RustPython/RustPython/pull/5894/commits#top
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
ShaharNaveh:constifyhttps://github.com/ShaharNaveh/RustPython/tree/constify
vmhttps://github.com/RustPython/RustPython/pull/5894/commits/b30c919b1b857bb2abbb3072a3e77c4148a757cb
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
b30c919https://github.com/RustPython/RustPython/pull/5894/commits/b30c919b1b857bb2abbb3072a3e77c4148a757cb
https://github.com/RustPython/RustPython/tree/b30c919b1b857bb2abbb3072a3e77c4148a757cb
compilerhttps://github.com/RustPython/RustPython/pull/5894/commits/a18f0c2a412ab2b67d341b90107559df4a141a8c
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
a18f0c2https://github.com/RustPython/RustPython/pull/5894/commits/a18f0c2a412ab2b67d341b90107559df4a141a8c
https://github.com/RustPython/RustPython/tree/a18f0c2a412ab2b67d341b90107559df4a141a8c
sre enginehttps://github.com/RustPython/RustPython/pull/5894/commits/fde322c3738917645c5c1ef4f4cdc1593539ef85
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
fde322chttps://github.com/RustPython/RustPython/pull/5894/commits/fde322c3738917645c5c1ef4f4cdc1593539ef85
https://github.com/RustPython/RustPython/tree/fde322c3738917645c5c1ef4f4cdc1593539ef85
compilerhttps://github.com/RustPython/RustPython/pull/5894/commits/80fba2f7afe13303d7df1c1c6e428b48b1affc05
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
80fba2fhttps://github.com/RustPython/RustPython/pull/5894/commits/80fba2f7afe13303d7df1c1c6e428b48b1affc05
https://github.com/RustPython/RustPython/tree/80fba2f7afe13303d7df1c1c6e428b48b1affc05
commonhttps://github.com/RustPython/RustPython/pull/5894/commits/5f790b8a5313843b7839ebd5d514af92daa50a41
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
5f790b8https://github.com/RustPython/RustPython/pull/5894/commits/5f790b8a5313843b7839ebd5d514af92daa50a41
https://github.com/RustPython/RustPython/tree/5f790b8a5313843b7839ebd5d514af92daa50a41
stdlibhttps://github.com/RustPython/RustPython/pull/5894/commits/8aef1a3e38fa6bef8de660c206956d53e71cce29
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
8aef1a3https://github.com/RustPython/RustPython/pull/5894/commits/8aef1a3e38fa6bef8de660c206956d53e71cce29
https://github.com/RustPython/RustPython/tree/8aef1a3e38fa6bef8de660c206956d53e71cce29
vmhttps://github.com/RustPython/RustPython/pull/5894/commits/5e086203e23eb17d5269fe2baf3f81057a3845f6
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
5e08620https://github.com/RustPython/RustPython/pull/5894/commits/5e086203e23eb17d5269fe2baf3f81057a3845f6
https://github.com/RustPython/RustPython/tree/5e086203e23eb17d5269fe2baf3f81057a3845f6
cargo fmthttps://github.com/RustPython/RustPython/pull/5894/commits/4e91f6a036edefd285a54ffb8caf0d84236b8954
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
4e91f6ahttps://github.com/RustPython/RustPython/pull/5894/commits/4e91f6a036edefd285a54ffb8caf0d84236b8954
https://github.com/RustPython/RustPython/tree/4e91f6a036edefd285a54ffb8caf0d84236b8954
Merge remote-tracking branch 'upstream/main' into constifyhttps://github.com/RustPython/RustPython/pull/5894/commits/593b9d267ada9c490c52a52964cdb6d3b09e9448
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
593b9d2https://github.com/RustPython/RustPython/pull/5894/commits/593b9d267ada9c490c52a52964cdb6d3b09e9448
https://github.com/RustPython/RustPython/tree/593b9d267ada9c490c52a52964cdb6d3b09e9448
vmhttps://github.com/RustPython/RustPython/pull/5894/commits/29b26d382d837ff9482a6a3640235a87a2ef35cc
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
29b26d3https://github.com/RustPython/RustPython/pull/5894/commits/29b26d382d837ff9482a6a3640235a87a2ef35cc
https://github.com/RustPython/RustPython/tree/29b26d382d837ff9482a6a3640235a87a2ef35cc
vmhttps://github.com/RustPython/RustPython/pull/5894/commits/6cd01bff4b9a9a0f3aaa6fd24c88ba823dafc5b2
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
6cd01bfhttps://github.com/RustPython/RustPython/pull/5894/commits/6cd01bff4b9a9a0f3aaa6fd24c88ba823dafc5b2
https://github.com/RustPython/RustPython/tree/6cd01bff4b9a9a0f3aaa6fd24c88ba823dafc5b2
commonhttps://github.com/RustPython/RustPython/pull/5894/commits/6b1deb4f2ae33f27f252195ecbed9c08368c1e4f
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
6b1deb4https://github.com/RustPython/RustPython/pull/5894/commits/6b1deb4f2ae33f27f252195ecbed9c08368c1e4f
https://github.com/RustPython/RustPython/tree/6b1deb4f2ae33f27f252195ecbed9c08368c1e4f
compilerhttps://github.com/RustPython/RustPython/pull/5894/commits/8adcaa509fe85f79dcf0f9ce9391c899ff027848
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
8adcaa5https://github.com/RustPython/RustPython/pull/5894/commits/8adcaa509fe85f79dcf0f9ce9391c899ff027848
https://github.com/RustPython/RustPython/tree/8adcaa509fe85f79dcf0f9ce9391c899ff027848
compiler codegenhttps://github.com/RustPython/RustPython/pull/5894/commits/dbf0078c778c53db3333779cc22ae4e7aef6952a
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
dbf0078https://github.com/RustPython/RustPython/pull/5894/commits/dbf0078c778c53db3333779cc22ae4e7aef6952a
https://github.com/RustPython/RustPython/tree/dbf0078c778c53db3333779cc22ae4e7aef6952a
vmhttps://github.com/RustPython/RustPython/pull/5894/commits/4b125360df9f3ee02c6fdfb51df779cc6797f3c1
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
4b12536https://github.com/RustPython/RustPython/pull/5894/commits/4b125360df9f3ee02c6fdfb51df779cc6797f3c1
https://github.com/RustPython/RustPython/tree/4b125360df9f3ee02c6fdfb51df779cc6797f3c1
cargo fmthttps://github.com/RustPython/RustPython/pull/5894/commits/e55f32b84a0e228239683b85cf2e07405dd86d4b
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
e55f32bhttps://github.com/RustPython/RustPython/pull/5894/commits/e55f32b84a0e228239683b85cf2e07405dd86d4b
https://github.com/RustPython/RustPython/tree/e55f32b84a0e228239683b85cf2e07405dd86d4b
remove bad constshttps://github.com/RustPython/RustPython/pull/5894/commits/eb3e2b3528c5832ad762182f1f77cf7093359586
https://github.com/ShaharNaveh
ShaharNavehhttps://github.com/RustPython/RustPython/commits?author=ShaharNaveh
eb3e2b3https://github.com/RustPython/RustPython/pull/5894/commits/eb3e2b3528c5832ad762182f1f77cf7093359586
https://github.com/RustPython/RustPython/tree/eb3e2b3528c5832ad762182f1f77cf7093359586
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.