How to check syntax of Python file/script without executing it?

I used to use perl -c to check the syntax of a Perl program and then exit without executing it. Is there an equivalent way to do this for a Python script?

← Назад к списку