[Tutor] Sys.exit()

Dragonfirebane at aol.com Dragonfirebane at aol.com
Sun Jun 6 12:57:40 EDT 2004


>I have switched to Version 2.3.3, and am having an issue with the sys.exit() 
function >working.  Is there an argument required now?
>
>Thanks,
>MB

In order to use the sys.exit() function, you must first import sys:

def exit():
    print "This program will now exit"
    import sys
    sys.exit()
exit()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040606/a389f25e/attachment.html


More information about the Tutor mailing list