It looks like this is an open bug according to the tracker:

If you take a look at the commentary, it looks as though there is a possible workaround for the time being.

Hope this helps.

Josh Juneau
Twitter ID:  javajuneau

On Fri, Jul 31, 2009 at 6:57 PM, Joey Jarosz <> wrote:

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 


Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
Jython-users mailing list