It would be similar to Perl's die() commmand. But no, in Python the argument is the error status of your script.
You'd have to do something like def exitnow(arg): print arg #maybe sys has not been imported import sys sys.exit(1) Hugo Ertl, John wrote: > Matthew, > > Not sure if ipython is different but have you tried sys.exit("stoping now") > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor