Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Alan Gauld
"Andrew Volmensky" <[EMAIL PROTECTED]> wrote > warewerks-01:~ andrew$ python > Python 2.4.4 (#1, Oct 18 2006, 10:34:39) > [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin > Type "help", "copyright", "credits" or "license" for more > information. > >>> import sys > >>> sys.exit() > warewer

Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Steve Willoughby
On Thu, Jan 10, 2008 at 01:17:20PM -0800, Andrew Volmensky wrote: > When typing the commands [statements?] in the terminal I get this: > > Last login: Sat Jan 5 22:20:44 on ttyp2 > Welcome to Darwin! > warewerks-01:~ andrew$ python > Python 2.4.4 (#1, Oct 18 2006, 10:34:39) > [GCC 4.0.1 (Apple Co

Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Eric Brunson
Kent Johnson wrote: > Andrew Volmensky wrote: > > >> ...and get an error. I have tried saving as exit.py from the editor >> and trying to run it and also entering the commands directly into the >> shell. My understanding is that this is supposed to exit the program, >> but that does not ap

Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Andrew Volmensky
Thanks Alan, When typing the commands [statements?] in the terminal I get this: Last login: Sat Jan 5 22:20:44 on ttyp2 Welcome to Darwin! warewerks-01:~ andrew$ python Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "cre

Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Kent Johnson
Andrew Volmensky wrote: > ...and get an error. I have tried saving as exit.py from the editor > and trying to run it and also entering the commands directly into the > shell. My understanding is that this is supposed to exit the program, > but that does not appear to be happening. sys.exit(

Re: [Tutor] import sys; sys.exit()

2008-01-10 Thread Alan Gauld
"Andrew Volmensky" <[EMAIL PROTECTED]> wrote > I am going through the tutorial "Simple Sequences" here: http:// > www.freenetpages.co.uk/hp/alan.gauld/ Good choice ;-) > ...and get an error. I have tried saving as exit.py from the editor > and trying to run it How are you running it? You need t

[Tutor] import sys; sys.exit()

2008-01-10 Thread Andrew Volmensky
I am going through the tutorial "Simple Sequences" here: http:// www.freenetpages.co.uk/hp/alan.gauld/ ...and get an error. I have tried saving as exit.py from the editor and trying to run it and also entering the commands directly into the shell. My understanding is that this is supposed t