From: Stefan R. <Ste...@gm...> - 2017-05-01 16:39:50
|
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 > Von: "Тихомиров Валентин" <int...@ya...> > An: jyt...@li... > 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 > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |