File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1436
1436
>>> try: pass
1437
1437
... except TypeError as name: raise from None
1438
1438
Traceback (most recent call last):
1439
- SyntaxError: invalid syntax
1439
+ SyntaxError: did you forget an expression between 'raise' and 'from'?
1440
1440
1441
1441
>>> try: pass
1442
1442
... except* TypeError as name: raise from None
1443
1443
Traceback (most recent call last):
1444
- SyntaxError: invalid syntax
1444
+ SyntaxError: did you forget an expression between 'raise' and 'from'?
1445
1445
1446
1446
>>> match 1:
1447
1447
... case 1 | 2 as abc: raise from None
1448
1448
Traceback (most recent call last):
1449
- SyntaxError: invalid syntax
1449
+ SyntaxError: did you forget an expression between 'raise' and 'from'?
1450
1450
1451
1451
Ensure that early = are not matched by the parser as invalid comparisons
1452
1452
>>> f(2, 4, x=34); 1 $ 2
You can’t perform that action at this time.
0 commit comments