python "syntax-checker"?

Roger Upole rupole at
Mon Sep 11 07:09:51 CEST 2000

You can use py_compile.compile('') to check for syntax errors.
               Roger Upole

<s_gherman at> wrote in message news:8phlrn$4iu$1 at
> Is there any tool out there that would perform a "syntax-checking" on a
> Python source code?
> Or, even more, to _simulate_ running and type-binding errors, etc (as
> compiler does for C, for instance)?
> I am not sure to what extent Python's dynamic type nature allows that,
> but I imagine there are some applications where one may not affors to
> half-run them just to find mistakes in the middle of his source code.
> Thanks in advance,
> Sorin Gherman
> Sent via
> Before you buy.

More information about the Python-list mailing list