[Tutor] whats the best command to end a program

Joseph Quigley cpu.crazy at gmail.com
Tue Dec 6 23:16:49 CET 2005


        if int(time.strftime(%H)) > 4:
>                 some end the program command
>         else:
>                 continue
>
> what would be best used here ?
>
>
I would use raise SystemExit

But another possibility is:
import sys then to exit sys.exit()
--
There are 10 different types of people in the world.
Those who understand binary and those who don't.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051206/b84dfee3/attachment.html


More information about the Tutor mailing list