Did you try to create a http://www.jython.org/javadoc/org/python/util/InteractiveInterpreter.html instead? (It's a subclass of PythonInterpreter, so features all of its methods too.) Then you can call interrupt on it, e.g. interrupt(Py.getThreadState()).
(Disclaimer: Didn't try myself, so no idea if this works as expected.)
Best
-Stefan
Gesendet: Montag, 01. Mai 2017 um 16:31 Uhr
Betreff: [Jython-users] Can I cancel Pythoninterpreter's evaluation?
I use some http://www.jython.org/javadoc/org/python/util/PythonInterpreter.html. It has methods to evaluate a script. What do you do for preliminary termination of the execution?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jython-users mailing list
https://lists.sourceforge.net/lists/listinfo/jython-users