Python needs better error reporting
holger krekel
pyth at devel.trillke.net
Sun Jun 30 03:58:30 EDT 2002
Opus wrote:
> At the most, I might suggest that there be an option to run just the parser,
> with more verbose output. Maybe even a different parser would be in order.
> Idea for anyone????
i'd suggest a heuristic approach. Compute statistics for which token
usually comes after a group of others. Just look at AST-structures not
values. This way you can suggest a hint to the user what he might have
done wrong. I think it's not feasible and too verbose to tell the user
what is actually correct. A simple "Maybe you forgot ..." would cover
90% of the cases, i guess.
holger
More information about the Python-list
mailing list