[Tutor] Is my Python install hosed?

Will Shattuck willshattuck at gmail.com
Mon Oct 2 01:59:19 CEST 2006


On 10/1/06, John Fouhy <john at fouhy.net> wrote:
> On 02/10/06, Will Shattuck <willshattuck at gmail.com> wrote:
> > I'm going through the tutorial "Learning to Program" at
> > http://www.freenetpages.co.uk/hp/alan.gauld/.  I reached the section
> > talking about sys.exit().  I typed it in as indicated, but I received
> > errors rather than it actually exiting the Python Shell windows
> > generated when starting IDLE.  Here is the text:
> >
[...]
> IDLE will just be catching the exception, I guess.  You can do it yourself:
>
> >>> try:
> ...  sys.exit()
> ... except SystemExit:
> ...  print 'Not exiting!'
> ...
> Not exiting!
>
> --
> John.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>

Thanks, didn't know about the Python command prompt.  Worked there.  Thanks :)

Will


More information about the Tutor mailing list