[Tutor] Using sys.exit()

Dick Moores rdm at rcblue.com
Thu Nov 2 07:57:07 CET 2006

At 10:16 PM 11/1/2006, Dick Moores wrote:
>BTW at the command line, "raise SystemExit(2)" produces a completely
>silent exit. In Win IDE I get "SystemExit: 2". With IDLE:
>Traceback (most recent call last):
>    File "E:\Python25\dev\1unitConversion5a.py", line 425, in <module>
>      main()
>    File "E:\Python25\dev\1unitConversion5a.py", line 413, in main
>      s = formatAndCheckStringFromUser(s)
>    File "E:\Python25\dev\1unitConversion5a.py", line 342, in
>      s = stripResponseAndCheckForUserRequestForHelpOrToQuit(s)
>    File "E:\Python25\dev\1unitConversion5a.py", line 253, in
>      raise SystemExit(2)
>SystemExit: 2

I should have added that Ulipad is also completely silent.

Dick Moores

More information about the Tutor mailing list