I am creating an interactive shell for Jython within an application. How can I force a long running function/method to be interrupted and return control back to the shell?  In PythonC, the user can type Ctrl-C to make this happen. So I tried several attempts with no luck. I tried to call InteractiveInterpreter.interrupt() but that does not seem to do anything to interrupt a running function. I also tried interjecting a “raise KeyboardInterrupt” but that also had no affect.


What am I missing?




Joey Jarosz

Senior Architect

Chip Planning Solutions

Cadence Design Systems, Inc.
(408) 914-6269

Need some IP? Check out www.chipestimate.com