Title: PEP 758 changes do not have `CHECK_VERSION` guard for usage with `ast.parse(..., feature_version=(3, 13))` · Issue #133194 · python/cpython · GitHub
Open Graph Title: PEP 758 changes do not have `CHECK_VERSION` guard for usage with `ast.parse(..., feature_version=(3, 13))` · Issue #133194 · python/cpython
X Title: PEP 758 changes do not have `CHECK_VERSION` guard for usage with `ast.parse(..., feature_version=(3, 13))` · Issue #133194 · python/cpython
Description: Bug report Right now this test passes: def test_pep758_except_without_parens(self): code = textwrap.dedent(""" try: ... except ValueError, TypeError: ... """) ast.parse(code, feature_version=(3, 14)) with self.assertRaises(SyntaxError): ...
Open Graph Description: Bug report Right now this test passes: def test_pep758_except_without_parens(self): code = textwrap.dedent(""" try: ... except ValueError, TypeError: ... """) ast.parse(code, feature_version=(3, 14...
X Description: Bug report Right now this test passes: def test_pep758_except_without_parens(self): code = textwrap.dedent(""" try: ... except ValueError, TypeError: ... """) ast.pars...
Opengraph URL: https://github.com/python/cpython/issues/133194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 758 changes do not have `CHECK_VERSION` guard for usage with `ast.parse(..., feature_version=(3, 13))`","articleBody":"# Bug report\n\nRight now this test passes:\n\n```python\n def test_pep758_except_without_parens(self):\n code = textwrap.dedent(\"\"\"\n try:\n ...\n except ValueError, TypeError:\n ...\n \"\"\")\n ast.parse(code, feature_version=(3, 14))\n with self.assertRaises(SyntaxError):\n ast.parse(code, feature_version=(3, 13))\n```\n\nBut, it should not pass. I have a PR ready.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133195\n* gh-133289\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2025-04-30T10:08:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/133194/cpython/issues/133194"}
| 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:fab93b8d-efd7-468a-c279-363ff2c44f83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C946:70D8F:659FB5:8E5C36:696A4B7E |
| html-safe-nonce | cdf58dd9cea5c89f445466871de658952e48ef7284a728edefba3f37fd4c4525 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQ2OjcwRDhGOjY1OUZCNTo4RTVDMzY6Njk2QTRCN0UiLCJ2aXNpdG9yX2lkIjoiMjUyNjAzNjcyNDI5ODY5NzU5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac808bb58a4799e2ac9dbb7339cc1a2ad2bf3869018fae7d8f6df38a82547d0b |
| hovercard-subject-tag | issue:3030801146 |
| 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/133194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dec1a4ff91566e7ca63d26c65bc303a621a72c9386972e38a742f17cefe3dfd8/python/cpython/issues/133194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dec1a4ff91566e7ca63d26c65bc303a621a72c9386972e38a742f17cefe3dfd8/python/cpython/issues/133194 |
| og:image:alt | Bug report Right now this test passes: def test_pep758_except_without_parens(self): code = textwrap.dedent(""" try: ... except ValueError, TypeError: ... """) ast.parse(code, feature_version=(3, 14... |
| 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 | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width