[wingide-users] A simple question

Wingware Support support at wingware.com
Fri Aug 31 07:19:41 MDT 2007


Virgil Stokes wrote:
> I am using Wing IDE 2.1 and find it very useful. However, one things 
> bothers me. Suppose I wish to have a "clean" exit/escape from a program 
> that I am running in the IDE --- what Python code/expression do I need 
> to have to accomplish this. By "clean" I mean no error messages generated.

You should just be able to do this:

import sys
sys.exit(0)

Although in the Python Shell it prints an exception rather than
exiting -- that's technically a bug caused by how the shell
is implemented.  Is that the problem you're running into?

Thanks,

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com



More information about the wingide-users mailing list