Title: Improve `SyntaxError` suggestions for common operator typos and cross-language mistakes · Issue #151303 · python/cpython · GitHub
Open Graph Title: Improve `SyntaxError` suggestions for common operator typos and cross-language mistakes · Issue #151303 · python/cpython
X Title: Improve `SyntaxError` suggestions for common operator typos and cross-language mistakes · Issue #151303 · python/cpython
Description: As I proposed in #151129 (comment), we can also add suggestions for <> ("not equal" in Pascal and Python 2), "=<", "=>" and "=!" (typo in "<=", ">=" and "!="), "===" ("is" in JavaScript and PHP). suggested by @serhiy-storchaka "===" ("is...
Open Graph Description: As I proposed in #151129 (comment), we can also add suggestions for <> ("not equal" in Pascal and Python 2), "=<", "=>" and "=!" (typo in "<=", ">=" and "!="), "===" ("is" in JavaScript and PHP). s...
X Description: As I proposed in #151129 (comment), we can also add suggestions for <> ("not equal" in Pascal and Python 2), "=<", "=>" and "=!" (typo in "&...
Opengraph URL: https://github.com/python/cpython/issues/151303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve `SyntaxError` suggestions for common operator typos and cross-language mistakes","articleBody":"> As I proposed in [#151129 (comment)](https://github.com/python/cpython/pull/151129#discussion_r3390826337), we can also add suggestions for `\u003c>` (\"not equal\" in Pascal and Python 2), \"=\u003c\", \"=>\" and \"=!\" (typo in \"\u003c=\", \">=\" and \"!=\"), \"===\" (\"is\" in JavaScript and PHP).\n\nsuggested by @serhiy-storchaka \n\n>\"===\" (\"is\" in JavaScript and PHP).\nAnd Mathematica.\n\nfollow up #150906 \n\n*I'll submit a PR for this . shortly*\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-151375\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Aniketsy","@type":"Person","name":"Aniketsy"},"datePublished":"2026-06-11T07:14:44Z","url":"https://github.com/python/cpython/issues/151303"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97d2b765-47d8-40b0-bf25-0f31175d8cb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A198:157C65:3691E7D:48C48C7:6B0211F8 |
| html-safe-nonce | 5de5bd47182b9c909e39c892d812adf433b64ba29fdb43a5aaa6aef9d1a28134 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTk4OjE1N0M2NTozNjkxRTdEOjQ4QzQ4Qzc6NkIwMjExRjgiLCJ2aXNpdG9yX2lkIjoiNDAyNjg0MTg2MTEyNDY1NzY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 297e76bec10bd570f4285da3323f23ee869109b1faa74029dc29f24451564dc2 |
| hovercard-subject-tag | issue:4638116755 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/151303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/638db7c47a050f48fa0605e4637af09ab773c78d1f55d59015d770ed52fb442c/python/cpython/issues/151303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/638db7c47a050f48fa0605e4637af09ab773c78d1f55d59015d770ed52fb442c/python/cpython/issues/151303 |
| og:image:alt | As I proposed in #151129 (comment), we can also add suggestions for <> ("not equal" in Pascal and Python 2), "=<", "=>" and "=!" (typo in "<=", ">=" and "!="), "===" ("is" in JavaScript and PHP). s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Aniketsy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width