Re: Can I cancel Pythoninterpreter's evaluation?
"Stefan Richthofer" <[email protected]> Mon, 1 May 2017 18:39:38 +0200
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <trinity-d98caab9-6a94-4861-ac46-a9e0d75424fb-1493656778136@3capp-gmx-bs44> |
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: "Тихомиров Валентин" <[email protected]> > An: [email protected] > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/jython-users > ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users