Newbie edit/compile/run cycle question

Simon Forman sajmikins at gmail.com
Mon Dec 10 06:06:15 EST 2007


On Dec 8, 6:45 pm, Jeremy C B Nicoll <jer... at omba.demon.co.uk> wrote:
> Steve Howell <showel... at yahoo.com> wrote:
>
> > --- Jeremy C B Nicoll <jer... at omba.demon.co.uk> 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



More information about the Python-list mailing list