How to disconnect JLine interactive interpreter session for Jython?

Jython 2.5 comes with JLine by default.

I would prefer to use an interactive interpreter with rlwrap . It seems that rlwrap does not work if JLine is active.

In Scala, I would use rlwrap scala -Xnojline.

Is there a similar option for Jython to deactivate JLine?

+3
source share
1 answer

You can set the jython python.console property for org.python.util.InteractiveConsole. This was the default in Jython 2.2 and is a simple console with no history. You can set this property through the command line, for example:

jython -Dpython.console = org.python.util.InteractiveConsole

. http://wiki.python.org/jython/UserGuide#the-jython-registry

+4

Source: https://habr.com/ru/post/1712440/


All Articles