Fwd: Can I cancel Pythoninterpreter's evaluation?

Тихомиров Валентин <[email protected]> Mon, 01 May 2017 20:27:13 +0300
Newsgroups gmane.comp.lang.jython.user
Message-ID <[email protected]>
I tried interactive. It works in place of standard interpreter but its interrupt(Py.getThreadState()) does nothing. The program keeps running after it.

-------- Пересылаемое сообщение --------

01.05.2017, 19:39, "Stefan Richthofer" <[email protected]>:

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