> One way out of the top level is to call
> sys.exit(1)

Which works, but you need to import sys first.

Using

raise SystemExit

avoids the need for an import.

Alan G.


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to