Search code examples
pythonshellwing-ide

How do you terminate the Python shell in Wing IDE?


I'm fairly new to Python and have been using Wing IDE to play around with the features. One of the things that I could find while looking around was how to force terminate the Python shell when executing a command that won't terminate any time soon. An example would be:

import math
math.factorial(1000000)

I know in Visual Studio C++, the command is Ctrl+C, but what exactly is the Python equivalent?


Solution

  • The method used to terminate execution varies between shells. For Wing IDE you use the Restart Shell item on the Options menu.