Title: Invalid error messages after GH-134077 · Issue #135422 · python/cpython · GitHub
Open Graph Title: Invalid error messages after GH-134077 · Issue #135422 · python/cpython
X Title: Invalid error messages after GH-134077 · Issue #135422 · python/cpython
Description: Bug report In #134036 (PR: #134077) I broke this use-case: # ex.py raise AssertionError() from None print(1,,2) Running ./python.exe ex.py on it produces: » ./python.exe ex.py File "/Users/sobolev/Desktop/cpython/ex.py", line 1 raise Ass...
Open Graph Description: Bug report In #134036 (PR: #134077) I broke this use-case: # ex.py raise AssertionError() from None print(1,,2) Running ./python.exe ex.py on it produces: » ./python.exe ex.py File "/Users/sobolev/...
X Description: Bug report In #134036 (PR: #134077) I broke this use-case: # ex.py raise AssertionError() from None print(1,,2) Running ./python.exe ex.py on it produces: » ./python.exe ex.py File "/Users/sob...
Opengraph URL: https://github.com/python/cpython/issues/135422
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid error messages after GH-134077","articleBody":"# Bug report\n\nIn https://github.com/python/cpython/issues/134036 (PR: #134077) I broke this use-case:\n\n```python\n# ex.py\nraise AssertionError() from None\n\nprint(1,,2)\n```\n\nRunning `./python.exe ex.py` on it produces:\n\n```\n» ./python.exe ex.py\n File \"/Users/sobolev/Desktop/cpython/ex.py\", line 1\n raise AssertionError() from None\n ^^^^\nSyntaxError: did you forget an expression after 'from'?\n```\n\nWhich is not correct. I am fixing it right now, sorry! :(\n\nCC @pablogsal @lysnikolaou \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-135423\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2025-06-12T07:59:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/135422/cpython/issues/135422"}
| 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:a6022385-8de3-2a3e-6648-76d75aa31ff5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBE4:BAB60:735310:95E605:696AECBC |
| html-safe-nonce | bf25abf7ab3d84c15bc36e3544730e91792caa1bb523dfb0aa79cc0bf7339c62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkU0OkJBQjYwOjczNTMxMDo5NUU2MDU6Njk2QUVDQkMiLCJ2aXNpdG9yX2lkIjoiMzI4MDg1NDMyNDU0Mjc4MzMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 827919357ec021c15aec81d961e847f5550bd7308658f3ec01f89942226d1ff9 |
| hovercard-subject-tag | issue:3139262503 |
| 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/135422/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97e44dde0cc716b0941deb768e8c7c942d1e87104cf9da281516071ec61eca10/python/cpython/issues/135422 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97e44dde0cc716b0941deb768e8c7c942d1e87104cf9da281516071ec61eca10/python/cpython/issues/135422 |
| og:image:alt | Bug report In #134036 (PR: #134077) I broke this use-case: # ex.py raise AssertionError() from None print(1,,2) Running ./python.exe ex.py on it produces: » ./python.exe ex.py File "/Users/sobolev/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width