> >>Or better still raise the SystemExit exception which automatically thanks Alan. From what I read in the Python in a Nutshell book, calling sys.exit() does raise the SystemExit exception