René's URL Explorer Experiment


Title: Use the Ruff fork 0.17.1 for CPython syntax error messages and the obsolete '<>' hint by youknowone · Pull Request #9212 · RustPython/RustPython · GitHub

Open Graph Title: Use the Ruff fork 0.17.1 for CPython syntax error messages and the obsolete '<>' hint by youknowone · Pull Request #9212 · RustPython/RustPython

X Title: Use the Ruff fork 0.17.1 for CPython syntax error messages and the obsolete '<>' hint by youknowone · Pull Request #9212 · RustPython/RustPython

Description: Summary The ruff crates come from the RustPython/ruff rustpython-0.17.1 branch by git rev, not from crates.io. That branch is ruff 0.17.1 with the RustPython fork patches on top. The crates are not published yet. Fork changes used here: A forced : after def/try/finally/else reports "expected ':'". raise from / raise x from report the did you forget an expression ... messages. Empty del/global/nonlocal, async + other token, decorator without definition, missing module or as name, and with without items report "invalid syntax". The import and with trailing comma messages are added. An adjacent < > in a comparison reports "invalid syntax. Maybe you meant '!=' instead of '<>'?" (invalid_noteq). The compiler places an error on the token made up at the end of the input according to the error kind (EofErrorLocation). The keyword scan that guessed forced tokens is removed. Outside Barry mode, BarrySource no longer searches the source text for <>. The parser's error is used unchanged, so 2 <<> 3 is no longer matched. This covers the parser-owned approach discussed in #9074. Testing cargo clippy --workspace --all-targets (with the usual excludes): no new warnings. cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi (cd crates/capi && cargo test) rustpython -m test --dont-add-python-opts: 37 modules passed, including test_syntax, test_codeop, test_repl, test_grammar, test_exceptions, test_compile, test_ast, test_tokenize, test_eof and test_flufl. AI assistance Written with Claude Code (claude-opus-5-5). 🤖 Generated with Claude Code Summary by CodeRabbit Bug Fixes Improved the locations shown for syntax errors at the end of a file, including errors involving missing tokens, empty imports, and invalid syntax. Empty-import diagnostics now retain the parser’s reported range. Improved guidance for the obsolete <> operator, with clearer error spans and a “Maybe you meant” hint for comparisons. Legacy <> handling is now limited to Barry mode.

Open Graph Description: Summary The ruff crates come from the RustPython/ruff rustpython-0.17.1 branch by git rev, not from crates.io. That branch is ruff 0.17.1 with the RustPython fork patches on top. The crates are no...

X Description: Summary The ruff crates come from the RustPython/ruff rustpython-0.17.1 branch by git rev, not from crates.io. That branch is ruff 0.17.1 with the RustPython fork patches on top. The crates are no...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:96d71d81-a4e4-f03f-508a-e85f92769d2c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD524:29FFA9:39944F9:48E8A16:6B01F3B4
html-safe-nonce16db7e36c72a57865bef7cdde7aa0d53d0280a5f4dae8c616c68007aa5c4c2ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTI0OjI5RkZBOTozOTk0NEY5OjQ4RThBMTY6NkIwMUYzQjQiLCJ2aXNpdG9yX2lkIjoiNTAyMTQ0MTM4NzkxMzE0NzMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca600fae18398647b8cbb897d65b5b90d30777930577ec746a17074512bccfdba
hovercard-subject-tagpull_request:4920470801
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/RustPython/RustPython/pull/9212/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altSummary The ruff crates come from the RustPython/ruff rustpython-0.17.1 branch by git rev, not from crates.io. That branch is ruff 0.17.1 with the RustPython fork patches on top. The crates are no...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9212/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9212%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9212%2Ffiles
Sign uphttps://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9212/files
Reloadhttps://github.com/RustPython/RustPython/pull/9212/files
Reloadhttps://github.com/RustPython/RustPython/pull/9212/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:ruff-0.17.1-syntax-errorshttps://github.com/youknowone/RustPython/tree/ruff-0.17.1-syntax-errors
Conversation 2 https://github.com/RustPython/RustPython/pull/9212
Commits 2 https://github.com/RustPython/RustPython/pull/9212/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9212/checks
Files changed https://github.com/RustPython/RustPython/pull/9212/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9212/files
Use the Ruff fork 0.17.1 for CPython syntax error messages and the obsolete '<>' hint https://github.com/RustPython/RustPython/pull/9212/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/9212/files
914ffad Use the RustPython Ruff fork 0.17.1 from git and place EOF errors by … youknowone Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9212/commits/914ffad19bb3f8f4c3d215ae538aa2feda4d34da
24e2b77 Report the obsolete `<>` from the parser outside Barry mode youknowone Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9212/commits/24e2b775132654362fd0fb24cbed568020a0f505
Clear filters https://github.com/RustPython/RustPython/pull/9212/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9212/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9212/files
Cargo.lock https://github.com/RustPython/RustPython/pull/9212/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/9212/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
lib.rs https://github.com/RustPython/RustPython/pull/9212/files#diff-560e1ff98a1fe1161356b6c726aeb89f8c5e9764ccd2f4fb4dfa7143508d09e7
Cargo.lockhttps://github.com/RustPython/RustPython/pull/9212/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/youknowone/RustPython/blob/24e2b775132654362fd0fb24cbed568020a0f505/Cargo.lock
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/RustPython/RustPython/pull/9212/files
Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9212/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/youknowone/RustPython/blob/24e2b775132654362fd0fb24cbed568020a0f505/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9212/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9212/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9212/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9212/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9212/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.