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
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:984fb897-076b-5dc4-223c-b445afefc1b4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B8F8:1AE20C:37DF0C5:46C53E7:6B01E6DE |
| html-safe-nonce | 1ffc6de3281defe1e223172bcc5f29d3b4bfe9bed36c7d526621d33e5a6ffc72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEY4OjFBRTIwQzozN0RGMEM1OjQ2QzUzRTc6NkIwMUU2REUiLCJ2aXNpdG9yX2lkIjoiNTMxMzg4NjA3MTg3NTAzNjg5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f59b16415cd4ec1812edc1ff8eb7450f69228b085139f546d1cc7fbb079d0b8d |
| hovercard-subject-tag | pull_request:4811835162 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9074/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width