File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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::
2020 >>> while True print('Hello world')
2121 File "<stdin>", line 1
2222 while True print('Hello world')
23- ^
23+ ^^^^ ^
2424 SyntaxError: invalid syntax
2525
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
2929example, the error is detected at the function :func: `print `, since a colon
3030(``':' ``) is missing before it. File name and line number are printed so you
3131know where to look in case the input came from a script.
You can’t perform that action at this time.
0 commit comments