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 — Invalid error messages after GH-134077 · Issue #135422 · python/cpython

Invalid error messages after GH-134077 #135422

New issue
Copy link
New issue
Copy link
Closed
Closed
Invalid error messages after GH-134077#135422
Copy link
Assignees
sobolevn
Labels
3.15bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@sobolevn
sobolevn
opened on Jun 12, 2025
Issue body actions

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 AssertionError() from None
                           ^^^^
SyntaxError: did you forget an expression after 'from'?

Which is not correct. I am fixing it right now, sorry! :(

CC @pablogsal @lysnikolaou

Linked PRs

  • gh-135422: Fix regression in SyntaxError messages after #134036 #135423
Reacted by Mikhail Efimov

Activity

  1. sobolevn
    self-assigned this
    on Jun 12, 2025
  2. sobolevn
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    release-blocker
    topic-parser
    on Jun 12, 2025
  3. ezio-melotti
    added this to Release and Deferred blockers 🚫on Jun 12, 2025
  4. github-project-automation
    moved this to Todo in Release and Deferred blockers 🚫on Jun 12, 2025
  5. sobolevn
    added a commit that references this issue on Jun 12, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    0d94e64
  6. sobolevn
    added
    3.15bugs and security fixesbugs and security fixes
    and removed
    release-blocker
    on Jun 12, 2025
  7. sobolevn commented on Jun 12, 2025

    @sobolevn
    sobolevn
    on Jun 12, 2025
    MemberAuthor
    More actions

    This did not make it to 3.14, so I removed the release-blocker label. Only 3.15 is affected.

  8. picnixz
    changed the title [-]Invalid error messages after #134036[/-] [+]Invalid error messages after GH-134036[/+] on Jun 14, 2025
  9. picnixz commented on Jun 14, 2025

    @picnixz
    picnixz
    on Jun 14, 2025 · Hidden as outdated
    show commentMore actions
  10. picnixz
    changed the title [-]Invalid error messages after GH-134036[/-] [+]Invalid error messages after GH-134077[/+] on Jun 14, 2025
  11. picnixz
    removed this from Release and Deferred blockers 🚫on Jun 14, 2025
  12. sobolevn
    added a commit that references this issue on Jun 30, 2025

    gh-135422: Fix regression in `SyntaxError` messages after #134036 (#1…

    7e33558
  13. sobolevn commented on Jun 30, 2025

    @sobolevn
    sobolevn
    on Jun 30, 2025
    MemberAuthor
    More actions

    Thanks everyone, done!

  14. sobolevn
    closed this as completedon Jun 30, 2025
  15. AndPuQing
    added a commit that references this issue on Jul 11, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    88c9480
  16. Pranjal095
    added a commit that references this issue on Jul 12, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    27a5841
  17. picnixz
    added a commit that references this issue on Jul 13, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    24a2572
  18. taegyunkim
    added a commit that references this issue on Aug 4, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    94599d6
  19. Agent-Hellboy
    added a commit that references this issue on Aug 19, 2025

    pythongh-135422: Fix regression in `SyntaxError` messages after pytho…

    2c13c88
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.15bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    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.