René's URL Explorer Experiment


Title: Match obsolete comparison diagnostics by youknowdot · Pull Request #9074 · RustPython/RustPython · GitHub

Open Graph Title: Match obsolete comparison diagnostics by youknowdot · Pull Request #9074 · RustPython/RustPython

X Title: Match obsolete comparison diagnostics by youknowdot · Pull Request #9074 · RustPython/RustPython

Description: Current status Current head: dd0c42ff332013dff6584e896e70638176008307, targeting main. The current source uses Python 3.15.0, not the older 3.14.8 pin described by earlier revisions. Exact-head hosted checks are complete: 27 succeeded and one conditional benchmark check was skipped; CI succeeded. The prior CI-pause and intermediate-head descriptions are superseded. This remains a draft because the parser-versus-compiler architecture question is still open. A passing CI run and the token-overlap correction do not settle that design decision. Scope Emit the obsolete-comparison hint for infix 2 <> 3, with the complete operator span. Keep bare <> a generic syntax error and preserve Barry-mode behavior. Match adjacent, complete < and > tokens rather than a textual substring, so 2 <<> 3 does not incorrectly match the suffix of <<. Keep the Python-visible message/span coverage in the existing extra_tests/snippets/builtin_compile.py, including overlap controls. Existing Rust tests retain structural parsing checks. Only crates/compiler/src/lib.rs and that existing snippet change. No Lib/ files or parser dependency are changed. The source still uses registry rustpython-ruff_python_parser 0.16.10. Remaining architecture question The current implementation lives in the existing compiler BarrySource adapter. It inspects parser tokens and the first parse-error position, then returns its diagnostic before first_parse_error in the compiler and symbol-table paths. This fixes the documented textual-token overlap, but still infers comparison context outside the parser. A parser-owned diagnostic would let the grammar's comparison production determine context directly. Such a migration would also need to remove or narrow the compiler override so it does not replace the parser's diagnostic. No parser migration is claimed by this patch; maintainer review of that boundary remains necessary. Validation and history Exact-head hosted CI is the current validation evidence. This status refresh adds no code and claims no new local runtime or build execution. The earlier 3.14.8 backport/source-extraction revisions had focused ASCII diagnostic, compiler and Barry-mode checks, normal hooks and scoped Clippy. Those results belong to their historical revisions, not a fresh run of this head. The change originated from the CPython obsolete-operator diagnostic update 66f8dbe0. AI assistance Maintainer-requested Python compatibility maintenance. OpenAI Codex assisted with source analysis, code and validation work in the existing commits, and this status/review clarification. Model version unavailable. No additional human manual testing is claimed by this update.

Open Graph Description: Current status Current head: dd0c42ff332013dff6584e896e70638176008307, targeting main. The current source uses Python 3.15.0, not the older 3.14.8 pin described by earlier revisions. Exact-head hos...

X Description: Current status Current head: dd0c42ff332013dff6584e896e70638176008307, targeting main. The current source uses Python 3.15.0, not the older 3.14.8 pin described by earlier revisions. Exact-head hos...

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

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:984fb897-076b-5dc4-223c-b445afefc1b4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB8F8:1AE20C:37DF0C5:46C53E7:6B01E6DE
html-safe-nonce1ffc6de3281defe1e223172bcc5f29d3b4bfe9bed36c7d526621d33e5a6ffc72
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEY4OjFBRTIwQzozN0RGMEM1OjQ2QzUzRTc6NkIwMUU2REUiLCJ2aXNpdG9yX2lkIjoiNTMxMzg4NjA3MTg3NTAzNjg5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf59b16415cd4ec1812edc1ff8eb7450f69228b085139f546d1cc7fbb079d0b8d
hovercard-subject-tagpull_request:4811835162
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/9074/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altCurrent status Current head: dd0c42ff332013dff6584e896e70638176008307, targeting main. The current source uses Python 3.15.0, not the older 3.14.8 pin described by earlier revisions. Exact-head hos...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9074/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9074%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%2F9074%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/9074/files
Reloadhttps://github.com/RustPython/RustPython/pull/9074/files
Reloadhttps://github.com/RustPython/RustPython/pull/9074/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
youknowdothttps://github.com/youknowdot
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix-obsolete-comparison-diagnostichttps://github.com/youknowdot/RustPython/tree/fix-obsolete-comparison-diagnostic
Conversation 6 https://github.com/RustPython/RustPython/pull/9074
Commits 1 https://github.com/RustPython/RustPython/pull/9074/commits
Checks 19 https://github.com/RustPython/RustPython/pull/9074/checks
Files changed https://github.com/RustPython/RustPython/pull/9074/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9074/files
Match obsolete comparison diagnostics https://github.com/RustPython/RustPython/pull/9074/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9074/files
77ef757 Retain obsolete comparison diagnostic regressions on current parser codex Nov 7, 2026 https://github.com/RustPython/RustPython/pull/9074/commits/77ef757d0f7b4aec0e387bcba20be021ce7be7b8
Clear filters https://github.com/RustPython/RustPython/pull/9074/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9074/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9074/files
extra_tests/snippets/builtin_compile.pyhttps://github.com/RustPython/RustPython/pull/9074/files#diff-732a02ab19c62e7a2988744ef416a3e23a87a9ee8ad7c66f20a9f1dcddc8e186
View file https://github.com/youknowdot/RustPython/blob/77ef757d0f7b4aec0e387bcba20be021ce7be7b8/extra_tests/snippets/builtin_compile.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9074/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9074/files#diff-732a02ab19c62e7a2988744ef416a3e23a87a9ee8ad7c66f20a9f1dcddc8e186
https://github.com/RustPython/RustPython/pull/9074/files#diff-732a02ab19c62e7a2988744ef416a3e23a87a9ee8ad7c66f20a9f1dcddc8e186
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9074/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.