[Pythonmac-SIG] sys.exit() functionality
Jon Bradley
jbradley@thinqinteractive.com
Tue, 29 Jan 2002 14:54:30 -0500
hey all,
In embedded Python - why does sys.exit() quit out of the application that's
embedding the interpreter? Is there any way to trap or disregard this?
If a user creates an application with Python and runs it through the
embedded interpreter, calling quit or exit on the Python application itself
is more than ok, but allowing it to force out of the parent application
isn't. I do not want Python to have that type of control. I haven't done
enough research on the sys module, but I thought I would pose this question
here since some of you may have experienced this and found ways around it.
thanks in advance.
Jon