WebSphere Jython coded by a pit

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.