File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 20632063
20642064>>> with item,: pass
20652065Traceback (most recent call last):
2066- SyntaxError: single 'with' item has a trailing comma
2066+ SyntaxError: the last 'with' item has a trailing comma
20672067
20682068>>> with item as x,: pass
20692069Traceback (most recent call last):
2070- SyntaxError: single 'with' item has a trailing comma
2070+ SyntaxError: the last 'with' item has a trailing comma
2071+
2072+ >>> with item1, item2,: pass
2073+ Traceback (most recent call last):
2074+ SyntaxError: the last 'with' item has a trailing comma
2075+
2076+ >>> with item1 as x, item2,: pass
2077+ Traceback (most recent call last):
2078+ SyntaxError: the last 'with' item has a trailing comma
2079+
2080+ >>> with item1 as x, item2 as y,: pass
2081+ Traceback (most recent call last):
2082+ SyntaxError: the last 'with' item has a trailing comma
2083+
2084+ >>> with item1, item2 as y,: pass
2085+ Traceback (most recent call last):
2086+ SyntaxError: the last 'with' item has a trailing comma
20712087
20722088>>> import a from b
20732089Traceback (most recent call last):
You can’t perform that action at this time.
0 commit comments