开发者

how do I invoke jython from the python shell (ubuntu)

I like the python shell in ubuntu, it loo开发者_Go百科ks pretty, and I want to run jython from there. Can this be done somehow?


Can't you just start a jython shell by typing jython?

Or are you trying to run ipython with jython? or do you want to run a jython program/script from an interactive python shell?

P.S. Possibly

import subrocess                                 
f=subprocess.Popen(['jython', '/usr/share/jython/Lib/test/test_xmllib.py'],stdout=subprocess)
for f.stdout.readline:
    ...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜