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 to exit the program,  
but that does not appear to be happening.

This is with MacPython 2.4 - Thanks!

IDLE 1.1.4
 >>> ================================ RESTART  
================================
 >>>

Traceback (most recent call last):
   File "/Users/andrew/python/exit.py", line 2, in -toplevel-
     sys.exit( )
SystemExit


 >>> import sys
 >>> sys.exit()

Traceback (most recent call last):
   File "<pyshell#1>", line 1, in -toplevel-
     sys.exit()
SystemExit
 >>>

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to