| 1 |
---input--- |
| 2 |
>>> exec('"') |
| 3 |
Traceback (most recent call last): |
| 4 |
File "<stdin>", line 1, in <module> |
| 5 |
File "<string>", line 1 |
| 6 |
" |
| 7 |
^ |
| 8 |
SyntaxError: EOL while scanning string literal |
| 9 |
|
| 10 |
>>> exec('"') |
| 11 |
Traceback (most recent call last): |
| 12 |
File "<stdin>", line 1, in <module> |
| 13 |
File "<string>", line 1, in <module> |
| 14 |
" |
| 15 |
^ |
| 16 |
SyntaxError: EOL while scanning string literal |
| 17 |
|
| 18 |
---tokens--- |
| 19 |
'>>> ' Generic.Prompt |
| 20 |
'exec' Name |
| 21 |
'(' Punctuation |
| 22 |
"'" Literal.String.Single |
| 23 |
'"' Literal.String.Single |
| 24 |
"'" Literal.String.Single |
| 25 |
')' Punctuation |
| 26 |
'\n' Text.Whitespace |
| 27 |
|
| 28 |
'Traceback (most recent call last):\n' Generic.Traceback |
| 29 |
|
| 30 |
' File ' Text |
| 31 |
'"<stdin>"' Name.Builtin |
| 32 |
', line ' Text |
| 33 |
'1' Literal.Number |
| 34 |
', in ' Text |
| 35 |
'<module>' Name |
| 36 |
'\n' Text.Whitespace |
| 37 |
|
| 38 |
' File ' Text |
| 39 |
'"<string>"' Name.Builtin |
| 40 |
', line ' Text |
| 41 |
'1' Literal.Number |
| 42 |
'\n' Text.Whitespace |
| 43 |
|
| 44 |
' ' Text.Whitespace |
| 45 |
'"' Literal.String.Double |
| 46 |
'\n' Text.Whitespace |
| 47 |
|
| 48 |
' ' Text.Whitespace |
| 49 |
'^' Punctuation.Marker |
| 50 |
'\n' Text.Whitespace |
| 51 |
|
| 52 |
'SyntaxError' Generic.Error |
| 53 |
': ' Text |
| 54 |
'EOL while scanning string literal' Name |
| 55 |
'\n' Text.Whitespace |
| 56 |
|
| 57 |
'\n' Text.Whitespace |
| 58 |
|
| 59 |
'' Text |
| 60 |
'>>> ' Generic.Prompt |
| 61 |
'exec' Name |
| 62 |
'(' Punctuation |
| 63 |
"'" Literal.String.Single |
| 64 |
'"' Literal.String.Single |
| 65 |
"'" Literal.String.Single |
| 66 |
')' Punctuation |
| 67 |
'\n' Text.Whitespace |
| 68 |
|
| 69 |
'Traceback (most recent call last):\n' Generic.Traceback |
| 70 |
|
| 71 |
' File ' Text |
| 72 |
'"<stdin>"' Name.Builtin |
| 73 |
', line ' Text |
| 74 |
'1' Literal.Number |
| 75 |
', in ' Text |
| 76 |
'<module>' Name |
| 77 |
'\n' Text.Whitespace |
| 78 |
|
| 79 |
' File ' Text |
| 80 |
'"<string>"' Name.Builtin |
| 81 |
', line ' Text |
| 82 |
'1' Literal.Number |
| 83 |
', in ' Text |
| 84 |
'<module>' Name |
| 85 |
'\n' Text.Whitespace |
| 86 |
|
| 87 |
' ' Text.Whitespace |
| 88 |
'"' Literal.String.Double |
| 89 |
'\n' Text.Whitespace |
| 90 |
|
| 91 |
' ' Text.Whitespace |
| 92 |
'^' Punctuation.Marker |
| 93 |
'\n' Text.Whitespace |
| 94 |
|
| 95 |
'SyntaxError' Generic.Error |
| 96 |
': ' Text |
| 97 |
'EOL while scanning string literal' Name |
| 98 |
'\n' Text.Whitespace |