Python needs better error reporting
brian at sweetapp.com
Sat Jun 29 04:42:29 EDT 2002
David LeBlanc wrote:
> Cute anthropomorphism is lots of fun, but doesn't _quite_ obscure the
> that computers don't really "tell" anybody anything, programmers do.
> Python throws this "Syntax Error: invalid syntax" in a number of
> In the place that I used as an example, looking at the language
> an appropriate error would be more like:
> Syntax Error: expected "and", "or", "xor" or ":"
There are a lot more tokens than that allowed. What about "+", "*", "\",
> This would at least narrow down what should be looked at to resolve
> Vague error reporting doesn't help new user's self confidance or
> acceptance of the language.
> I really DO have a point!
Probably. Figure out how to add more meaningful syntax errors and submit
a patch. Good luck!
More information about the Python-list