You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hence the following description might be inaccurate as well:
The parser repeats the offending line and displays a little ‘arrow’ pointing at the earliest point in the line where the error was detected. The error is caused by (or at least detected at) the token preceding the arrow: in the example, the error is detected at the function print(), since a colon (':') is missing before it. File name and line number are printed so you know where to look in case the input came from a script.
I guess that @pablogsal as an expert in a Python error messages might provide more data on current error handling :)
The change happened with the new parser in 3.10. I will change the example and change the text to 'one or more'. The rest is still the same for me also. Thank you for linking to spot of the foul.
Activity
terryjreedy commentedon Mar 10, 2024
The change happened with the new parser in 3.10. I will change the example and change the text to 'one or more'. The rest is still the same for me also. Thank you for linking to spot of the foul.
pythongh-116563: Update tutorial error example
gh-116563: Update tutorial error example (#116569)
pythongh-116563: Update tutorial error example (pythonGH-116569)
pythongh-116563: Update tutorial error example (pythonGH-116569)
pythongh-116563: Update tutorial error example (pythonGH-116569)
pythongh-116563: Update tutorial error example (pythonGH-116569)
[3.11] gh-116563: Update tutorial error example (GH-116569) (#116625)
[3.12] gh-116563: Update tutorial error example (GH-116569) (#116624)
pythongh-116563: Update tutorial error example (python#116569)
pythongh-116563: Update tutorial error example (python#116569)