Exiting program

Michael P. Reilly arcege at shore.net
Fri Jan 21 16:08:05 EST 2000


Randall Hopper <aa8vb at yahoo.com> wrote:
: Randall Hopper:
:  |volumeregeling:
:  | |    sys.exit()                        <-- for some reason this also
:  |
:  |Keep in mind that this doesn't terminate your program.  It merely raises
:  |a SystemExit exception.  ... it can be caught and ignored, which is most
:  |likely what is going on:

: Should have mentioned this, but in case you have more important fish to fry
: right now, just call:

:      os._exit(0)

: to force an unfriendly, immediate exit (bypassing the exception propagation
: mechanism).

And probably bypassing such things as flushing openned files and such.

  -Arcege




More information about the Python-list mailing list