File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ complaint you get while you are still learning Python::
20
20
>>> while True print('Hello world')
21
21
File "<stdin>", line 1
22
22
while True print('Hello world')
23
- ^
23
+ ^^^^ ^
24
24
SyntaxError: invalid syntax
25
25
26
- The parser repeats the offending line and displays a little 'arrow' pointing at
27
- the earliest point in the line where the error was detected. The error is
28
- caused by (or at least detected at) the token *preceding * the arrow: in the
26
+ The parser repeats the offending line and displays little 'arrow's pointing
27
+ at the token in the line where the error was detected. The error may be
28
+ caused by the absence of a token *before * the indicated token. In the
29
29
example, the error is detected at the function :func: `print `, since a colon
30
30
(``':' ``) is missing before it. File name and line number are printed so you
31
31
know where to look in case the input came from a script.
You can’t perform that action at this time.
0 commit comments