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

Robert Latest boblatest at yahoo.com
Mon Oct 10 13:14:13 EDT 2022


<avi.e.gross at gmail.com> wrote:
> Cameron,
>
> Your suggestion makes me shudder!

Me, too

> Removing all earlier lines of code is often guaranteed to generate errors as
> variables you are using are not declared or initiated, modules are not
> imported and so on.

all of which aren't syntax errors, so the method should still work. Ugly as
hell though. I can't think of a reason to want to find multiple syntax errors
in a file.



More information about the Python-list mailing list