On Dec 8, 6:45 pm, Jeremy C B Nicoll <[EMAIL PROTECTED]> wrote: > Steve Howell <[EMAIL PROTECTED]> wrote: > > > --- Jeremy C B Nicoll <[EMAIL PROTECTED]> wrote: > > > What command (in XP) does one need to issue to > > >syntaxcheck a saved python > > > script without running it? > > > Perhaps oversimplifying a bit, running "python" does a > >syntaxcheck, and if it passes, moves on the next > > steps of interpretation/execution. > > Ah, I've been using IDLE so far (but would probably prefer to write Python > in my normal text editor). In IDLE Alt-X syntax checks the saved copy of > the file being edited (at least it seems to), and I was wondering how to > replicate that elsewhere.
I don't know of a command line tool to do that, but I hasten to point out that you have the source code of IDLE available so you could just figure out what it's doing and encapsulate that in a script. Regards, ~Simon -- http://mail.python.org/mailman/listinfo/python-list