What to use for finding as many syntax errors as possible.

Chris Angelico rosuav at gmail.com
Wed Oct 12 20:29:22 EDT 2022


On Thu, 13 Oct 2022 at 11:23, dn <PythonList at danceswithmice.info> wrote:
> # add an extra character within identifier, as if 'new' identifier
> 28      assert expected_value == fyibonacci_number
>                 UUUUUUUUUUUUUU    UUUUUUUUUUUUUUUUU
>
> # these all trivial SYNTAX errors - could have tried leaving-out a
> keyword, but ...

Just to be clear, this last one is not actually a *syntax* error -
it's a misspelled name, but contextually, that is clearly a name and
nothing else. These are much easier to report multiples of, and
typical syntax highlighters will do so.

Your other two examples were both syntactic discrepancies though.

ChrisA


More information about the Python-list mailing list