Newbie Question: Aborting a Python script
Erik Max Francis
max at alcyone.com
Sat Nov 30 05:54:08 EST 2002
Tom Nunamaker wrote:
> How do you stop a script during execution? Do I have to throw an
> error
> like a divide by zero? I didn't see any abort, stop, halt, etc type
> of
> function.
sys.exit()
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ The people are to be taken in very small doses.
\__/ Ralph Waldo Emerson
WebVal / http://www.alcyone.com/pyos/webval/
URL scanner, maintainer, and validator in Python.
More information about the Python-list
mailing list