Op 10/10/2022 om 19:08 schreef Robert Latest via Python-list:
Antoon Pardon wrote:
> I would like a tool that tries to find as many syntax errors as possible > in a python file.

I'm puzzled as to when such a tool would be needed. How many syntax errors can
you realistically put into a single Python file before compiling it for the
first time?
I've been following the discussion from a distance and the whole time I've been wondering the same thing. Especially when you have unit tests, as Antoon said he has, I can't really imagine a situation where you add so much code in one go without running it that you introduce a painful amount of syntax errors.

My solution would be to use a modern IDE with a linter, possibly with style warnings disabled, which will flag syntax errors as soon as you type them. Possibly combined with a TDD-style tactic which also prevents large amounts of errors (any errors) to build up. But I have the impression that any of those doesn't fit in Antoon's workflow.

--
"Peace cannot be kept by force. It can only be achieved through understanding."
        -- Albert Einstein

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to