Newbie edit/compile/run cycle question
Jeremy C B Nicoll
jeremy at omba.demon.co.uk
Sat Dec 8 21:45:46 EST 2007
Steve Howell <showell30 at yahoo.com> wrote:
>
> --- Jeremy C B Nicoll <jeremy at omba.demon.co.uk> wrote:
> > What command (in XP) does one need to issue to
> > syntax check a saved python
> > script without running it?
>
> Perhaps oversimplifying a bit, running "python" does a
> syntax check, 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.
> > Does a syntax check report all syntax errors or just
> > the first one found?
>
> Just the first one. In practice, you end up fixing
> them one at a time anyway, so this works for me, as
> long as I have a fluid way to call out to python and
> return to the editor.
Yes, I suppose so.
--
Jeremy C B Nicoll - my opinions are my own.
More information about the Python-list
mailing list