GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Incorrect syntax error · Issue #133999 · python/cpython

Incorrect syntax error #133999

New issue
Copy link
New issue
Copy link
Closed
Closed
Incorrect syntax error#133999
Copy link
Assignees
sobolevn
Labels
3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertopic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@tom-pytel
tom-pytel
opened on May 14, 2025
Issue body actions

Bug report

Bug description:

>>> try: 1/0
... except Exception as exc: raise from exc
... 
  File "<python-input-0>", line 2
    except Exception as exc: raise from exc
                        ^^^
SyntaxError: cannot use except statement with name

Should be:

>>> try: 1/0
... except: raise from ValueError()
... 
  File "<python-input-2>", line 2
    except: raise from ValueError()
                  ^^^^
SyntaxError: invalid syntax

CPython versions tested on:

CPython main branch, 3.14

Operating systems tested on:

Linux

Linked PRs

  • gh-133999: Fix except parsing regression in 3.14 #134035
  • [3.14] gh-133999: Fix except parsing regression in 3.14 (GH-134035) #134206

Activity

  1. tom-pytel
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 14, 2025
  2. sobolevn
    added
    topic-parser
    on May 14, 2025
  3. sobolevn
    self-assigned this
    on May 14, 2025
  4. sobolevn commented on May 14, 2025

    @sobolevn
    sobolevn
    on May 14, 2025
    Member
    More actions

    This is a regression from my commit. Sorry! Fixing

  5. sobolevn
    added
    release-blocker
    3.14bugs and security fixesbugs and security fixes
    on May 14, 2025
  6. ezio-melotti
    added this to Release and Deferred blockers 🚫on May 14, 2025
  7. github-project-automation
    moved this to Todo in Release and Deferred blockers 🚫on May 14, 2025
  8. sobolevn
    added 2 commits that reference this issue on May 15, 2025

    pythongh-133999: Fix `except` parsing regression in 3.14

    d60a061

    pythongh-133999: Fix `except` parsing regression in 3.14

    f5eb02c
  9. picnixz
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on May 15, 2025
  10. sobolevn
    added a commit that references this issue on May 17, 2025

    gh-133999: Fix `except` parsing regression in 3.14 (#134035)

    84914ad
  11. miss-islington
    added a commit that references this issue on May 19, 2025

    pythongh-133999: Fix `except` parsing regression in 3.14 (pythonGH-13…

    0ccff19
  12. sobolevn
    added a commit that references this issue on May 19, 2025

    [3.14] gh-133999: Fix `except` parsing regression in 3.14 (GH-134035) (…

    d9c08c5
  13. hugovk
    closed this as completedon May 20, 2025
  14. github-project-automation
    moved this from Todo to Done in Release and Deferred blockers 🚫on May 20, 2025
  15. Yhg1s
    added a commit that references this issue on Jun 6, 2025

    gh-134036: Update test_syntax for gh-133999 (#135204)

    82415ac
  16. Pranjal095
    added 2 commits that reference this issue on Jul 12, 2025

    pythongh-133999: Fix `except` parsing regression in 3.14 (python#134035)

    b00cf25

    pythongh-134036: Update test_syntax for pythongh-133999 (python#135204)

    f5396de
  17. taegyunkim
    added 2 commits that reference this issue on Aug 4, 2025

    pythongh-133999: Fix `except` parsing regression in 3.14 (python#134035)

    709261d

    pythongh-134036: Update test_syntax for pythongh-133999 (python#135204)

    1775d5d
  18. Agent-Hellboy
    added a commit that references this issue on Aug 19, 2025

    pythongh-134036: Update test_syntax for pythongh-133999 (python#135204)

    1b4dac9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertopic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

  • Release and Deferred blockers 🚫
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.