was5.1版本,用"name=" in line这类判断字符串包含的方式时,系统会提示报错
typeerror:string member test needs char left operand
Originally python early code, in the left must be a single character, and was5.1 Jython is used in earlier versions of Python, so does not support the more advanced syntax, was8.5 also exist this problem
- yeah , its fairly old I believe. Its the implementation of Jython, comes with WebSphere 8.5.5. Even though its the very latest release of WebSphere, it still comes with a ten-year-old PYTHON! – SEER  OCT 3 ' @ 9:15
- I looked into this some more. WebSphere comes with Jython 2.1 (just type to
sys.version
verify). Look at SourceForge and behold, it is released in September 2002, thus why we had to deal with stupid issues from over a Decade Ago:sourceforge.net/projects/jython/files/jython–artofwarfare June 3 ' in 15:05
By this stupid problem of doubt oneself will not write python ...
Reference page: https://stackoverflow.com/questions/19140003/ Python-jython-if-substring-in-string-always-results-in-typeerror-string-member
A pit for the Jython code of WebSphere