为wsadmin编写jython脚本时,似乎不可能像这个简单示例所示那样使用布尔值。在
应用程序-停止.py公司名称:
isTrue = True
print isTrue
电话:
^{pr2}$结果:
D:\IBM\WebSphere\AppServer WASX7209I: Connected to process "dmgr" on node OurCellManager using SOAP connector; The type of process is: DeploymentManager WASX7017E: Exception received while running file "D:\app-stop.py"; exception information: com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last): File "", line 1, in ? NameError: True
不管我是在写True
(应该是有效的python)还是true
。唯一的方法是isTrue = 1
。但是为什么不能在wsadmin上的jython中使用有效的python代码呢?在
8.5.5及更早版本中的jython是jython2.1,它实现了python2.1中的语言。这些常量直到2.3才在Python中出现。在
jython在9.0中升级。本文档描述了在8.5.5中对其进行本地更新,但令人惊讶的是涉及到:
https://www.ibm.com/developerworks/websphere/library/techarticles/1207_vansickel/1207_vansickel.html
相关问题 更多 >
编程相关推荐