Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
>>>try:1/0...exceptExceptionasexc:raisefromexc...File"<python-input-0>",line2exceptExceptionasexc:raisefromexc^^^SyntaxError:cannotuseexceptstatementwithname
Should be:
>>>try:1/0...except:raisefromValueError()...File"<python-input-2>",line2except:raisefromValueError()^^^^SyntaxError:invalidsyntax
CPython versions tested on:
CPython main branch, 3.14
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done